dbt Core to Fusion Migration: What Breaks and Which Failures Are Engine Gaps
Sort parse-time failures into your code, your packages and the engine before you let an agent touch the project
Most of what breaks when you move from dbt Core to dbt Fusion is old code that Core only warned about. The dbt upgrade guide requires you to resolve every deprecation warning before you enable the new engine, and the upgrade reference says the removed functionality now fails. An AI agent can automate the mechanical part of the work. It cannot decide which failures are your debt and which are the engine's gaps, so the migration needs a triage step first.
Key Takeaways
- •Fusion rejects deprecated code that Core only warned about, so the first job is clearing every deprecation warning on your current version.
- •Several failures move from compile time to parse time: undefined macros, undefined generic tests and undefined variables now stop the project before a single model runs.
- •Package-compatibility warnings can contradict dbt-autofix; dbt's own guide says to treat dbt-autofix as the source of truth and calls the conflict temporary.
- •Some failures are engine behavior, not your code: experimental features need opt-in flags, and docs v2 runs locally only.
- •An agent can safely apply mechanical fixes and run parse checks, but promotion from staging to production should stay behind a human approval.
Why this migration is not a version bump
dbt's current documentation describes the new engine as a Rust rewrite that is faster at parse and compile time, and it now labels the release dbt v2. Many teams still call it Fusion, so we use both names here. The project language and DAG semantics stay the same, and the docs say projects should work as before, only faster. That sentence is true for projects that were clean on the last Core release. It is not true for projects carrying years of warnings.
The reason is strictness. The engine validates configs at parse time, so misspelled keys, unknown YAML keys and invalid CLI options that Core tolerated now raise errors. The upgrade reference lists the specifics, and none of them are exotic. They are the kind of small inconsistencies every long-lived dbt project accumulates: a stale flag in a CI script, a macro nobody calls, a variable that only one environment defines.
So the useful framing is a triage, not an upgrade. For every failure the new engine reports, ask whether the cause is your code, your packages or the engine. The three have different owners and different fixes, and mixing them up is how a two-day migration becomes a two-week one.
Step 1: Clear every deprecation warning on the current version
The upgrade guide is explicit that you run its deprecation check before enabling the new engine, and that any remaining warnings must be resolved first. The reference page adds that behavior-change flags marked 2.0 can no longer be opted out of. If your project has been living on a legacy flag, that flag is gone.
Start with the open-source helper. The dbt-autofix repository automates many of these rewrites, and the guide's autofix step applies fixes, runs a follow-up parse and shows the changed files in the version control panel. If it cannot fix everything, the guide tells you to fix the rest by hand and re-run the check. Read the diff. Autofix is deterministic, but it edits your project, and a reviewer should see every changed file.
Treat this as its own pull request, merged on your current version. It carries no engine risk because the project still runs on the old engine, and it shrinks the eventual cutover diff to something a person can review in one sitting.
Step 2: Expect failures to move from compile time to parse time
The reference page lists three failures that previously surfaced only at compile time and now fail at parse time: nonexistent macros or adapter methods, undefined generic tests, and undefined variables such as var('does_not_exist'). In practice this means a dead branch of Jinja that never executed in production can now block the whole project.
Other changes are quieter. Duplicate docs block names raise an error. Unexpected top-level YAML keys raise an error, and standalone anchors must move under an anchors: key. Self-referential YAML anchors do not parse, and the docs say there is no plan to support them. Code after a top-level return() is ignored with warning dbt1508, and config.get() no longer reads meta, so you move to config.meta_get().
Command-line flags matter too, because they live in CI and orchestrator configs rather than in the dbt project. --models, --model and -m now error, so scripts need --select. The partial-parse flags trigger warning dbt1700. Grep your scheduler definitions for these before cutover, not after the first failed job.
Step 3: Separate package warnings from real incompatibility
This is where the migration gets confusing, and it is the clearest case of a failure that is not your code. The upgrade guide states that the new engine's warnings may flag a package as incompatible while dbt-autofix reports it as compatible. It tells you to treat dbt-autofix as the source of truth because it has more context, and it calls the conflict temporary.
The reference page gives the actual rule: a package is compatible if its require-dbt-version includes 2.0.0. That is a check you can run yourself. Read each package's declared range, compare it with what the warning claims, and record the result. If a package genuinely excludes the new major version, the fix is upstream: a newer release, a fork or a replacement. If it declares support and the warning still fires, you have found an engine-side inconsistency, and you should not spend a day rewriting your project around it.
Conflicting pinned package versions are a separate case. The reference page says they raise an error, which is your dependency graph and not the engine. Resolve those in packages.yml.
Step 4: Separate engine gaps from your own debt
Some behavior is neither a bug in your project nor a package problem. It is a documented property of the engine, and the right response is to opt in, work around it or wait. The reference page names several. Local unit-test compute needs DBT_ENGINE_EXPERIMENTAL_LOCAL_UNIT_TESTS=true. Multi-adapter projects need DBT_ENGINE_EXPERIMENTAL_MULTI_ADAPTER=true, and without it parsing fails if any node has an adapter config, even a node you did not select. Docs v2 runs locally only, so on the managed platform you use its catalog instead.
Adapter coverage is the other gap. The page lists BigQuery, Databricks, Redshift and Snowflake as supported, with ClickHouse and Apache Spark in beta, and DuckDB on the command line only. If you run an adapter outside that list, the migration is blocked by the engine, not by anything you wrote. Check this before you start, because no amount of code cleanup fixes it.
Seeds deserve their own check. Extra trailing commas no longer create an empty column, and date and timestamp inference can change column types, which can break downstream parsing. Pin column_types and run dbt seed --full-refresh where the types matter. Here the engine's new behavior meets your data, and a silent type change is more dangerous than a loud error.
Step 5: Stage the cutover and keep a rollback
dbt's guide recommends a staging soak of 3 to 7 days, with a minimum of every critical job running successfully once and one to two weeks for enterprise projects, according to the upgrade guide. Production then gets 24 to 48 hours of close monitoring, and rollback means switching the environment's version back to the previous track. Note the guide's warning that rollback disables features specific to the new engine, so do not adopt those features until the soak is over.
The reference page says the new engine writes manifest v12, which is compatible with v1, so you can run both side by side and state-dependent features like state:modified and --defer work across them. Use that. Run the same selection on both engines in staging and diff the outcomes, row counts and test results, rather than trusting a green parse.
Validate everything downstream of the project, not only the project. The guide lists mesh dependencies, BI tools, consumers, CI and the semantic layer as things to check. A model that builds fine and changes a column type has still broken someone's dashboard.
Where an AI agent helps and where it must stop
The question behind this page is whether an agent can automate the migration. For the mechanical layer, yes. Rewriting flags, renaming config keys, moving anchors, running a parse and reporting the first error are all deterministic, verifiable steps. The Migration Agent does this class of work: it reads the project, runs the deprecation check, applies the fixes autofix supports and opens the result as a reviewable change.
The judgment layer is different. A package warning that contradicts autofix needs a decision about which source to believe. A seed whose inferred type changed needs someone who knows what the downstream consumer expects. The Schema Agent covers part of this by diffing column types before and after and projecting which consumers a change reaches, and the Pipeline Agent handles the orchestrator side, such as the stale -m flags in scheduler definitions. Neither replaces the human sign-off on production.
Because each agent is an MCP server, you invoke them from the editor you already use. The Model Context Protocol specification defines how a client discovers and calls those tools. We keep the open-source edition read-only by default, so an agent can diagnose and propose a migration without write access, and writes sit behind approval in the paid tiers. For a cutover, that is the right default: the agent produces the diff, the parse log and the blast-radius report, and a person approves the merge.
A short pre-flight checklist
- •Confirm your adapter and authentication method appear in the supported list before touching code.
- •Run the deprecation check on your current version and merge the autofix changes as a separate pull request.
- •Grep CI, scheduler and wrapper scripts for
-m,--modelsand the partial-parse flags. - •Read each package's
require-dbt-versionand record whether it includes 2.0.0, independent of what the warnings say. - •Pin seed
column_typeswhere a changed type would break a consumer. - •Run both engines side by side in staging, diff results, and write down the rollback step before you start.
Frequently Asked Questions
What breaks when upgrading from dbt Core to dbt Fusion?
Deprecated code that Core tolerated is the main casualty, along with failures that move from compile time to parse time. Undefined macros, undefined generic tests, undefined variables, unknown YAML keys, duplicate docs block names and legacy CLI flags such as -m all now error. Seed type inference can also change column types. Resolve every deprecation warning on your current version first, then re-run the project on the new engine in staging.
Are package-compatibility warnings reliable?
Not always. The upgrade guide says the engine's warnings may flag a package as incompatible while dbt-autofix reports it as compatible, and it tells you to treat dbt-autofix as the source of truth. It calls the conflict temporary. Check the package's require-dbt-version range yourself: the reference page says a package is compatible when that range includes 2.0.0.
Can an AI agent automate the dbt migration?
It can automate the mechanical steps: running the deprecation check, applying autofix, rewriting flags and config keys, parsing, and reporting what still fails. It should not decide production promotion or resolve ambiguous package and type changes on its own. We recommend an agent that proposes a reviewable diff with a parse log and a blast-radius report, with a human approving the merge.
Is dbt Fusion the same as dbt v2?
In dbt's current documentation the Rust-based engine is presented as dbt v2, the latest major version, and the docs say v1.x remains supported. Many teams and older articles still say Fusion. Check which name your dbt version and docs page use, and follow the upgrade reference for that release.
How long should a staging soak last?
dbt's guide recommends 3 to 7 days in staging, with a minimum of every critical job running successfully once, and one to two weeks for enterprise projects. After the production cutover it suggests monitoring closely for the first 24 to 48 hours. Keep the rollback to the previous track ready throughout.