How to Migrate dbt Core to Fusion: What Breaks With Custom Macros and How to Stage the Upgrade
A staged path from v1 to the Fusion engine, with the failure modes custom macros and packages are most likely to hit
To migrate dbt Core to Fusion, first clear every deprecation warning on the latest v1 release, then move environments in order: development, staging, production. The official upgrade guide recommends 3–7 days of monitoring in staging (1–2 weeks for complex projects) and 24–48 hours in production, with rollback as a single version-setting change. Custom macros and packages are where most surprises show up, because the new engine validates project code more strictly.
Key Takeaways
- •Fusion is the engine behind what the dbt docs now call dbt v2. The upgrade path runs from the v1 Latest release track to v2 Stable, one environment at a time.
- •The prerequisite is a project that runs on the latest v1 with no deprecation warnings or errors. Fix those first, on v1, where the old engine still tells you what is wrong.
- •Stage it dev, then staging, then production. The upgrade guide recommends 3–7 days of staging monitoring and 24–48 hours of production monitoring.
- •Custom macros, packages and anything that parses v1 log output are the highest-risk areas. The docs do not enumerate every macro failure, so test them explicitly.
- •Rollback is a version setting: change the environment from v2 Stable back to v1 Latest.
What Fusion changes and why the upgrade needs staging
Fusion is a rewrite of the dbt engine. The upgrade guide lists the headline benefits as up to 30x faster parsing and compilation, stronger SQL validation and better error messages. That last pair is the one that matters for migration risk. An engine that validates SQL and project code more strictly will reject things the v1 engine tolerated, and those rejections surface as errors rather than silent behavior.
The supported features page is candid about this: v2 supports nearly all v1.x capabilities, removes some deprecated features and validates erroneous project code more strictly. It does not say how many gaps remain. So the working assumption for a real project is that most models will pass untouched and a minority will fail for reasons specific to your codebase.
That is the case for staging. Parse and compile speed is easy to verify in minutes. Behavioral differences, such as a macro that rendered slightly different SQL, only show up when scheduled jobs, downstream BI tools and CI run against the new engine for several cycles. Staging gives you those cycles without exposing production consumers.
Step 1: Get to a clean v1 baseline
Before touching the release track, get the project to the latest v1 with zero deprecation warnings. The supported features page lists this as a requirement, along with migrating Semantic Layer configs to the latest YAML spec. Doing this on v1 matters because you can separate two kinds of failure: problems that exist regardless of the engine, and problems introduced by the engine switch.
Most deprecations are mechanical, such as renamed config keys and moved properties. The open-source dbt-autofix tool exists to rewrite these automatically, and the dbt platform exposes the same capability as an Autofix button in its deprecation warnings panel. Review its diff like any other pull request. Autofix is good at structural YAML changes and cannot know your intent inside a hand-written macro.
Record a baseline before you change anything: row counts and a checksum or sample of values for your most important models, plus run times for critical jobs. You will compare against these after each stage. This is the step teams skip, and it is the one that turns a vague feeling that something looks different into a specific diff you can act on.
Step 2: Migrate development first
The guide's sequence starts in development. An account admin enables the readiness and upgrade features, a developer clicks Start dbt v2 upgrade, checks deprecation warnings, applies autofix where offered, fixes the remainder by hand, then enables v2. After the switch, every user on the team restarts the IDE. Verify with dbt compile, dbt run --select <model>, tests, query preview and Git operations.
Development is also where you should run the whole project through compile, not only the models you edit most often. A strict parser reports problems in rarely touched models and old macros that nobody has opened in a year. Run dbt compile across everything, collect the full error list, and group failures by cause. Ten errors from one shared macro is one fix, not ten.
Keep production on v1 while you do this. The point of dev-on-Fusion, prod-on-Core is that developers get fast feedback and error messages immediately, while scheduled production runs stay on the engine they have always used. Environment-level version settings make that split possible without a branch or a fork.
What breaks with custom macros and adapter-specific code
We want to be precise here, because the official docs are. The upgrade guide says it does not provide a full list of breaking changes, and points to the limitations reference for project-specific code. The supported features page does not discuss adapter dispatch, Jinja patterns or Python models in detail. Anything below beyond those documented limits is a testing checklist, not a claim about what the engine does.
Documented limits worth checking first: models that depend on materialization features v2 does not fully support, tooling that depends on the exact log output of v1.x, and platform workflows such as model-level notifications. If you wrote a custom materialization, overrode a built-in macro, or parse run logs in a downstream script, those are your first suspects. Search the repo for materialization, adapter.dispatch, and any code that reads logs/dbt.log.
For each custom macro, compare the compiled SQL on v1 and on the new engine for the models that call it. A macro that returns a different string, even whitespace-equivalent, is fine. One that returns different logic is a bug. Also check adapter coverage: the guide lists BigQuery, Databricks, Redshift and Snowflake as supported with specific auth methods, ClickHouse as private beta, and the supported features page lists Spark as beta and DuckDB as CLI-only. If you run an adapter outside that list, confirm support before planning dates.
Packages: the compatibility trap
Packages fail in a way that is easy to misread. Per the supported features page, a package counts as v2-compatible if its require-dbt-version contains 2.0.0, for example >=1.10.0,<3.0.0. The hub does not always reflect this. A warning such as dbt1065 can say a package requires an older range while dbt-autofix already knows it is compatible.
The upgrade guide's instruction for that conflict is to treat dbt-autofix as the source of truth, and it describes the mismatch as temporary. In practice: do not pin to an older package version just to silence the warning. Check what autofix reports, then run the package's models and tests in dev to confirm.
One concrete change affects Fivetran users: the docs say the source and transformation packages are merged into one. If you installed a source package such as fivetran/github_source by hand, you install the combined package and deactivate the transformation models. That is a dependency change, not a flag flip, so schedule it as its own pull request with its own review.
Step 3: Stage through intermediate environments, then production
For staging, edit the environment, set the dbt version to v2 Stable and save. Then run test jobs and watch scheduled runs. The guide gives three durations: a minimum of one successful run of critical jobs, a recommended 3–7 days of monitoring, and 1–2 weeks for enterprise or complex projects. Validate Mesh references, BI tools, downstream consumers and CI/CD during that window.
Production follows the same pattern with more ceremony. Pick a low-traffic window, notify stakeholders and prepare the rollback. Set the environment to v2 Stable, run one critical job, check parse, compile, builds and tests, then monitor for 24–48 hours. Remove any job-level version overrides afterward so jobs inherit the environment setting, otherwise a job can quietly stay on the old engine.
Rollback is deliberately simple: change the environment's version from v2 Stable back to v1 Latest. The guide notes this disables v2-specific features, so do not adopt those features in production until the monitoring window has closed. That keeps rollback a one-setting change instead of a refactor.
Validating output: diff, do not eyeball
Passing tests tells you the new engine agrees with your existing assertions. It does not tell you the data is the same. Data diffing compares two tables to find values that were changed, kept, added or removed, and Datafold's explainer describes running it between dev and prod copies of a table. Its worked example found a production table with 82 more rows than the pull request version, the sort of gap a passing test suite can miss.
Build the same comparison into your staging window. Run the same models on v1 and on the new engine into separate schemas, then diff row counts, keys and column values. Differences are not automatically bad, as that article stresses: a team has to decide whether each is expected. The value of diffing is that every difference becomes a reviewable item.
This is also where an agent earns its place. Our Pipeline Agent can run the compile-and-compare loop across every model, group failures by shared macro, and hand an engineer a short list instead of six hundred log lines. The engineer still approves each fix and the production cutover.
A staged checklist you can copy
- •Baseline: latest v1, zero deprecation warnings, Semantic Layer configs on the latest spec, row counts and run times recorded.
- •Inventory: grep for custom materializations,
adapter.dispatch, overridden built-ins, log-parsing scripts and package pins. - •Dev: enable v2, run
dbt compileon the entire project, group errors by root cause, fix shared macros first. - •Packages: check
require-dbt-version, trust dbt-autofix over a stale hub warning, test anything unclear. - •Staging: v2 Stable, 3–7 days of monitoring (1–2 weeks if complex), diff outputs against the v1 baseline.
- •Production: low-traffic window, one critical job first, 24–48 hours of monitoring, remove job-level overrides, keep the rollback ready.
Frequently Asked Questions
Do I have to fix deprecation warnings before moving to Fusion?
Yes. The supported features page lists a project that runs on the latest v1 with no deprecation warnings or errors as a requirement. Fixing them on v1 also makes later failures easier to attribute to the engine rather than to old project code.
Will my custom macros work on Fusion?
Many will, but the docs do not guarantee it and do not enumerate macro-level breaking changes. Treat each custom macro as untested: compile the models that call it on both engines and compare the generated SQL. Pay extra attention to custom materializations and anything adapter-specific.
Can I run Fusion in dev and Core in production?
Yes, that is the sequence the upgrade guide describes. Environments carry their own dbt version setting, so development, staging and production can sit on different engines while you validate. Remove job-level version overrides once production moves so everything converges.
How do I roll back if production breaks?
Change the production environment's dbt version from v2 Stable back to v1 Latest. The guide notes this disables v2-specific features, so avoid depending on them until your monitoring window has passed.