Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bigquery-migration-validator

БесплатноБез исполняемых скриптовНе проверен

Validates that tables migrated to BigQuery match their source (Teradata, Snowflake, Oracle, Redshift, Databricks, PostgreSQL, SQL Server, MySQL, MariaDB…

googleот google★ 25 380 звёзд на GitHub

Об этом скилле

BigQuery Migration Validator

The validation tool compares a source table with its migrated BigQuery table. It runs in two halves:

  1. 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.
  2. 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

  1. 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 --location for validation workflows):

    gcloud config set project PROJECT_ID
    
  2. Enable 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.com
    
  3. Local runtime, authentication, and IAM permissions (ask before installing software):

    • Runtime and drivers: Java 11 or later (JRE 11+) first on PATH, the bqms gcloud component (installed on first use or with gcloud 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 ./drivers or BQMS_DRIVER_DIR when 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 login and gcloud auth application-default login (or set GOOGLE_APPLICATION_CREDENTIALS for 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, the results.projectId project (roles/bigquery.dataEditor and roles/bigquery.jobUser). With Secret Manager passwords, it also needs roles/secretmanager.secretAccessor on the secret, or roles/iam.serviceAccountTokenCreator on the service account named in secretImpersonateServiceAccount (which then needs the accessor role).
  4. 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_paths entry in run_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) and sample_metadata.json, so run_history.gcs_uri no 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
Полный SKILL.md на GitHub

Установить bigquery-migration-validator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/attribution.mdreferences/cli.mdreferences/configuration.mdreferences/connections.mdreferences/dialect_mapping.mdreferences/investigation.mdreferences/performance_tuning.mdreferences/results.mdreferences/troubleshooting.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить bigquery-migration-validator с