bigquery-migration-data-loader
БесплатноЗапускает вложенные скриптыНе проверенProvisions BigQuery datasets, ingests staged Parquet files directly into native BigQuery tables by using bq load, and deploys already-translated views from…
от google★ 25 380 звёзд на GitHubОб этом скилле
BigQuery Migration Data Loader
This skill coordinates the automated provisioning of BigQuery datasets, direct
ingestion of staged Parquet files into native BigQuery tables by using the
bq load command, and automated view deployment directly from BigQuery
Migration Service (BQMS) translation output directories (local or Cloud
Storage).
Usage attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
Before you begin
Google Cloud CLI, project, and location setup: Install the Google Cloud CLI (including the
gcloudandbqcommand-line tools), confirm that your Google Cloud project has an active Cloud Billing account attached, and configure the target project and default Compute Engine region:gcloud config set project PROJECT_ID gcloud config set compute/region REGIONgcloud config set compute/regionsets the default Compute Engine region; thebqCLI does not readcompute/regionand defaults toUSunless--locationis passed onbqcommands or set in~/.bigqueryrc(or configured through a project or organizationdefault_location). BigQuery is retiring the multi-region designation—includingUSandEUin the single-regions list colocated withus-central1andeurope-west4, with no change to existing data residency (see BigQuery locations)—so always pass an explicit--locationonbqcommands that matches your staged Cloud Storage bucket, as described in step 5 (check regional service availability at Google Cloud locations).Enable the APIs: Ask the user before enabling APIs, then enable the BigQuery and Cloud Storage APIs (
bigquery.googleapis.comandstorage.googleapis.com):gcloud services enable bigquery.googleapis.com storage.googleapis.comAuthentication and required IAM roles: Authenticate with
gcloud auth loginandgcloud auth application-default login(or setGOOGLE_APPLICATION_CREDENTIALSfor service account authentication). Verify that your identity or service account has the required IAM roles on each resource:- Grant BigQuery Job User (
roles/bigquery.jobUser) on the target Google Cloud project. - Grant BigQuery Data Editor (
roles/bigquery.dataEditor) on the target Google Cloud project (to create new datasets withbq mk) or on an existing target dataset (to create or overwrite tables and views). - Grant Storage Object Viewer (
roles/storage.objectViewer) on the Cloud Storage bucket holding staged Parquet files and translation metadata.
- Grant BigQuery Job User (
Python environment: Ask the user for confirmation before installing Python packages, then install PyYAML in a virtual environment:
pip install pyyaml==6.0.2Location, cost, and cleanup: Use the location of your staged Cloud Storage bucket for the dataset and every
bqcommand: the bucket's region for a regional bucket, orUSorEUfor aUSorEUmulti-region bucket. Default tous-central1only when you also choose the bucket location. Loading from a bucket in a different location incurs data transfer charges (see BigQuery locations). Review Google Cloud pricing before loading large datasets or running audit queries. Ask the user for confirmation before deleting temporary staged Parquet files (gcloud storage rm -r gs://BUCKET/EXPORT_PREFIX) or test datasets (bq rm -r -f PROJECT_ID:DATASET_ID) when no longer needed.
1. Loader workflow overview
The following diagram illustrates the four-stage ingestion and view deployment pipeline:
flowchart TD
subgraph 1. Inputs
A1["Translation Output Directory / Cloud Storage URI<br>gs://bucket/translation_output/metadata/"]
A2["Staged Parquet Files<br>gs://bucket/data_unload/TABLE/*.parquet"]
end
subgraph 2. Ingestion Pipeline
B1["1. Ensure Dataset Exists<br>bq mk --dataset --location=LOCATION DATASET"]
B2["2. Concurrent Parquet Ingestion<br>bq load --source_format=PARQUET --replace=true<br>Auto-creates native tables"]
B3["3. Row Count Audit<br>Print BigQuery Row Counts for Comparison"]
B4["4. Deploy Consumption Views<br>Deploys views directly from consolidated views.sql or relations/"]
end
A1 & A2 --> B1 --> B2 --> B3 --> B4
2. Direct tr
Установить bigquery-migration-data-loader в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bigquery-migration-data-loader?
Provisions BigQuery datasets, ingests staged Parquet files directly into native BigQuery tables by using bq load, and deploys already-translated views from local or Cloud Storage BigQuery Migration Service (BQMS) translation outputs. Use when provisioning target BigQuery datasets for warehouse migrations, batch loading staged Parquet files into native BigQuery tables by using bq load, auditing loaded table row counts, or deploying already-translated BigQuery views into a target dataset. Don't use for extracting source database catalog metadata, translating SQL queries, views, stored procedures, or DDL schemas to GoogleSQL (use bigquery-migration-sql-translator), exporting or unloading source database tables (such as Snowflake, Databricks, Teradata, or Oracle) to Parquet on Cloud Storage, or running post-migration cross-database data validation.
Как установить скилл bigquery-migration-data-loader?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bigquery-migration-data-loader запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic