Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

bigquery-migration-sql-translator

Skill by google

Translates SQL queries, DDL schemas and stored procedures from legacy dialects to BigQuery GoogleSQL using the BigQuery Migration Service MCP server. Built for teams moving workloads from Teradata, Oracle, Redshift, Snowflake, SparkSQL or HiveQL.

  • Score 92
  • 25k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install bigquery-migration-sql-translator

Built from the published package, never by AI.

git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/bigquery-migration-sql-translator ~/.claude/skills/bigquery-migration-sql-translator

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install bigquery-migration-sql-translator in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The BigQuery Migration Service (BQMS) SQL Translator is a skill that converts SQL queries, DDL schemas and stored procedures from legacy dialects into BigQuery GoogleSQL. It supports Teradata, Oracle, Redshift, Snowflake, SparkSQL and HiveQL. It works through the BQMS MCP server and covers both single-query translation and batch translation of files staged in Cloud Storage.

The skill guides the assistant through setup, translation, log review and iteration. It checks compiler logs, dry-runs output when a BigQuery project is available, and flags dialect gotchas. It suits teams migrating legacy SQL workloads to BigQuery. It does not execute queries or manage datasets, which other BigQuery skills handle.

Written from the project's SKILL.md and checked against it.

What it can do

  • translate_queryTranslates a single query string and returns GoogleSQL with translation logs.
  • get_translationPolls the status of a single-query translation until it succeeds or fails.
  • explain_translationExplains syntax, function and behavior differences between source and translated SQL.
  • translate_batch_queriesTranslates multiple SQL files staged in Cloud Storage and produces a translation report.
  • fetch_batch_translationPolls a batch translation workflow until it finishes.
  • translate_metadataGenerates target BigQuery DDL schemas from a database metadata zip file.

What you need

  • Google Cloud SDK installed
  • Google Cloud project with an active Cloud Billing account
  • BigQuery Migration API (bigquerymigration.googleapis.com) enabled
  • roles/mcp.toolUser and roles/bigquerymigration.editor IAM roles
  • Cloud Storage object viewer and creator roles for batch translation

Try asking

  • Translate this Teradata query to BigQuery GoogleSQL and list any errors.
  • Batch translate my Oracle SQL folder staged in a Cloud Storage bucket.
  • Explain the differences between this Snowflake query and its BigQuery version.

Good to know

  • The source says translated output must be checked, since some errors produce no log entry.
  • Dry runs need a BigQuery project, and Not found errors are expected when referenced tables do not exist yet.
  • NoSuchFunction errors mean the function call was copied untranslated.
  • Temporary Cloud Storage folders should be deleted after batch migrations.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/cloud/bigquery-migration-sql-translator/SKILL.md, skills/cloud/bigquery-migration-sql-translator/assets/python_embedded_sql_migrator_template.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md16 KB
  • assets/python_embedded_sql_migrator_template.py42 KB
  • assets/translation_config_examples/environment_example.yaml167 B
  • assets/translation_config_examples/experimental_input_formats_example.yaml213 B
  • assets/translation_config_examples/experimental_metadata_example.yaml147 B
Show all 34 files
  • assets/translation_config_examples/experimental_object_rewriter_example.yaml2 KB
  • assets/translation_config_examples/experimental_optimizer_example.yaml348 B
  • assets/translation_config_examples/experimental_statement_rewriter_example.yaml400 B
  • assets/translation_config_examples/input_formats_example.yaml200 B
  • assets/translation_config_examples/metadata_example.yaml168 B
  • assets/translation_config_examples/object_rewriter_example.yaml673 B
  • assets/translation_config_examples/optimizer_example.yaml335 B
  • assets/translation_config_examples/statement_rewriter_example.yaml387 B
  • assets/translation_config_schemas/environment.json498 B
  • assets/translation_config_schemas/experimental_input_formats.json976 B
  • assets/translation_config_schemas/experimental_metadata.json629 B
  • assets/translation_config_schemas/experimental_object_rewriter.json19 KB
  • assets/translation_config_schemas/experimental_optimizer.json635 B
  • assets/translation_config_schemas/experimental_statement_rewriter.json1 KB
  • assets/translation_config_schemas/input_formats.json963 B
  • assets/translation_config_schemas/metadata.json876 B
  • assets/translation_config_schemas/object_rewriter.json9 KB
  • assets/translation_config_schemas/optimizer.json622 B
  • assets/translation_config_schemas/statement_rewriter.json1 KB
  • assets/translation_config_schemas/transpiler_config_spec.json39 KB
  • references/attribution.md2 KB
  • references/effect_compatibility.md2 KB
  • references/effect_completeness.md5 KB
  • references/effect_correctness.md9 KB
  • references/mcp_config.md8 KB

And 4 more files on GitHub.

Alternatives to bigquery-migration-sql-translator

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

bigquery-migration-sql-translator: common questions

Which SQL dialects can it translate from?

The source lists Teradata, Oracle, Redshift, Snowflake, SparkSQL and HiveQL as legacy dialects translated to BigQuery GoogleSQL.

Does it run my BigQuery queries?

No. The source says executing queries and managing datasets and tables is handled by the bigquery-basics skill.

Does a translation guarantee correct results?

No. The source says explain_translation does not validate the output, so the translated SQL must still be checked through logs and dry runs.

How do I install bigquery-migration-sql-translator?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is bigquery-migration-sql-translator free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is bigquery-migration-sql-translator safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to bigquery-migration-sql-translator?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

bigquery-migration-sql-translator Install

Add to stack

Loading.