feat(cloud): add dbt-sf-to-bq-translator skill - #221
Closed
prabhaarya wants to merge 1 commit into
Closed
prabhaarya wants to merge 1 commit into
prabhaarya wants to merge 1 commit into
Conversation
Collaborator
|
Hello @prabhaarya , thank you for this contribution! As explained in https://github.com/google/skills/blob/main/CONTRIBUTING.md#how-you-can-help, we're not accepting PRs for this repo currently. Your suggestion is valuable though, and we'd like to make sure that we internally triage it. Please feel free to post it as an issue in https://github.com/google/skills/issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
dbt-sf-to-bq-translatorskill underskills/cloud/dbt-sf-to-bq-translator/.This skill provides autonomous guidance and automation for translating Snowflake dbt SQL models into standardized, compilation-ready Google Cloud BigQuery SQL.
Key Capabilities
ref,source, complex control blocks) into standard SQL-compliant placeholders before sending to BigQuery Translation Service, restoring them post-translation to preserve full dbt DAG lineage.{{ config(...) }}blocks, stripping Snowflake-specific parameters (such astransient,copy_grants, andsecure) and sanitizing pre/post hooks.CAST(JSON_EXTRACT_SCALAR(...) AS TYPE)), explicit type casting, and deduplication patterns usingQUALIFY rn = 1.{{ ref(...) }}and{{ source(...) }}macros using discovered project models and schema definitions.scripts/bulk_translate_via_gcloud.py) for batch migration workflows.Changes Included
skills/cloud/dbt-sf-to-bq-translator/:SKILL.md: Main agent skill definition with structured triggers and step-by-step migration instructions.README.md: Skill overview, prerequisite GCP permissions, and CLI usage.references/dbt_migration_patterns.md: Before-and-after dialect translation pattern guide.scripts/dbt_translator.py: Core translation engine, AST config parser, regex sanitizers, and GCS workflow runner.scripts/bulk_translate_via_gcloud.py: Bulk translation command-line entrypoint.tests/test_dbt_translator.py: Complete unit test suite for namespace resolution, macro audit, config transformation, and sanitization.assets/: Workflow architecture and processing diagrams.README.md: RegisteredDBT Snowflake to BigQuery Translatorunder the Databases and analytics section.index.json: Catalog entry registered in alphabetical order pointing to the rawSKILL.mdentrypoint.Verification
tests/test_dbt_translator.py): all 15 tests passed.index.jsonformatting and deterministic sorting against repository standards.