bigquery-migration-validator
БесплатноБез исполняемых скриптовНе проверенValidates that tables migrated to BigQuery match their source (Teradata, Snowflake, Oracle, Redshift, Databricks, PostgreSQL, SQL Server, MySQL, MariaDB…
от google★ 25 380 звёзд на GitHubОб этом скилле
BigQuery Migration Validator
The validation tool compares a source table with its migrated BigQuery table. It runs in two halves:
- Client (this machine): Reads the config, queries the source database, and stages a row sample, source aggregates, and run metadata in Cloud Storage. It then starts a BigQuery Migration workflow for each table and exits.
- Backend (Google Cloud, asynchronous): Loads the staged sample into BigQuery, compares it with the target table, and writes the results to BigQuery and Cloud Storage.
Results do not exist when the command exits. Wait for the workflow to finish before reading them (Section 4).
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 and project: Ensure the [Google Cloud CLI][gcloud_install] is installed, verify that the Google Cloud project has an active Cloud Billing account, and configure the target project (check regional service availability at [Google Cloud locations][cloud_locations] when choosing
--locationfor validation workflows):gcloud config set project PROJECT_IDEnable the APIs (ask the user before enabling APIs): BigQuery (
bigquery.googleapis.com), BigQuery Migration (bigquerymigration.googleapis.com), Cloud Storage (storage.googleapis.com), and Secret Manager (secretmanager.googleapis.com, when reading source passwords from Secret Manager):gcloud services enable \ bigquery.googleapis.com \ bigquerymigration.googleapis.com \ storage.googleapis.com # Only when source passwords come from Secret Manager: gcloud services enable secretmanager.googleapis.comLocal runtime, authentication, and IAM permissions (ask before installing software):
- Runtime and drivers: Java 11 or later (JRE 11+) first on
PATH, thebqmsgcloud component (installed on first use or withgcloud components install bqms), local network access to the source database, and vendor JDBC driver JARs for Teradata (terajdbc4.jar), Vertica (vertica-jdbc.jar), Impala, and DuckDB in./driversorBQMS_DRIVER_DIRwhen required (other JDBC drivers download on first use; see connections and drivers). - Google Cloud credentials and IAM: Authenticate the Google Cloud CLI
and Application Default Credentials with
gcloud auth loginandgcloud auth application-default login(or setGOOGLE_APPLICATION_CREDENTIALSfor a service account). The identity needs write access to the staging Cloud Storage bucket (roles/storage.objectAdmin), permission to create BigQuery Migration workflows (roles/bigquerymigration.editor), and permission to run BigQuery jobs and write validation results in the target project and, if set, theresults.projectIdproject (roles/bigquery.dataEditorandroles/bigquery.jobUser). With Secret Manager passwords, it also needsroles/secretmanager.secretAccessoron the secret, orroles/iam.serviceAccountTokenCreatoron the service account named insecretImpersonateServiceAccount(which then needs the accessor role).
- Runtime and drivers: Java 11 or later (JRE 11+) first on
Cost and cleanup: Review Google Cloud Pricing for BigQuery, Cloud Storage, and Secret Manager. Staged samples in Cloud Storage contain source rows. When validation is complete, ask the user before deleting the staged run directory (a
gcs_pathsentry inrun_state.json) and any per-run tables they no longer need (list them as in the results reference, Section 5). Deleting the run directory also deletes the backend reports stored there (results.json,validation_summary.txt,column_details.txt,queries.sql) andsample_metadata.json, sorun_history.gcs_urino longer resolves; say so and offer to copy the reports locally first:gcloud storage cp GCS_RUN_PATH/results.json \ GCS_RUN_PATH/validation_summary.txt GCS_RUN_PATH/column_details.txt \ GCS_RUN_PATH/queries.sql LOCAL_DIR/ gcloud storage rm --recursive GCS_RUN_PATH bq rm -f -t RESULTS_PROJECT:DATASET.TABLE_NAME
1. What gets compared
| Pillar | --validation-types |
Compares | Coverage |
|---|---|---|---|
| Schema | schema |
Column presence, mapping, and data type compatibilit |
Установить bigquery-migration-validator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bigquery-migration-validator?
Validates that tables migrated to BigQuery match their source (Teradata, Snowflake, Oracle, Redshift, Databricks, PostgreSQL, SQL Server, MySQL, MariaDB, Hive, Impala, Vertica) with the BigQuery Migration Service (BQMS) validation tool: schema and data type comparison, column aggregate comparison, and row-level data comparison. Use when generating or editing a validation config, running a validation, choosing sampling or partitioning, fixing connection or driver errors, or investigating validation results in BigQuery and Cloud Storage to decide which mismatches to fix. Don't use for SQL translation (use bigquery-migration-sql-translator), extracting source database catalog metadata or query logs, generating SQL scripts (such as COPY INTO) or exporting or unloading source tables to Parquet on Cloud Storage, loading staged files into BigQuery (such as bq load), or general BigQuery query failures and tuning (use bigquery-troubleshooting or bigquery-optimization).
Как установить скилл bigquery-migration-validator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bigquery-migration-validator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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