Fix Dbt Macros

Fix macro files in a dbt project for Snowflake incompatibilities after `scai code convert --dbt` has repointed the project's model SQL and ref()/source() calls from its original source dialect (Redshift, BigQuery, Databricks, PostgreSQL, Teradata, Oracle, SqlServer, or any other dialect scai's dbt repointing supports) to Snowflake. Scoped strictly to files under macro-paths (default `macros/`) — does not touch model SQL or dbt_project.yml/profiles.yml. Use when the user says "fix dbt macros", "macros aren't Snowflake compatible", "fix macro files after dbt repointing", or after scai's dbt repointing conversion leaves macro-level source-dialect syntax unconverted. Normally spawned by `migration/dbt/SKILL.md` Step 4 in task mode, but also runnable standalone. Do NOT use for fixing model SQL or validating dbt config files — those are Steps 5 and 3 of the dbt repointing orchestrator. Distinct from `migrate-objects/actions/etl-stabilization/dbt-fixer`, which fixes SnowConvert-generated dbt projects during ETL stab

snowflake-labs Updated 54 repo stars

File contents

snowflake-labs/cortex-code-migrations commit a007a96da2

Frequently asked questions

npx get-skill add snowflake-labs/fix-dbt-macros