Dagster & dbt Fusion
This feature is considered in a beta stage. It is still being tested and may change. For more information, see the API lifecycle stages documentation.
Run your dbt project on the dbt Fusion engine with Dagster, including how Dagster selects a dbt executable and which features are not supported on Fusion.
The dbt Fusion engine is dbt Labs' rewrite of dbt in Rust. Its main benefit for Dagster users is parse time: Fusion compiles a project's manifest substantially faster than the Python implementation, which is most noticeable on large projects and on every code location reload.
Fusion reached general availability on September 16, 2026. As part of that release, dbt Labs renamed the Fusion engine to dbt and renamed the previous Python implementation to dbt OSS. This page uses "Fusion" and "dbt Core" throughout, since those are the names most existing Dagster projects were built against.
Dagster invokes dbt through the dbt executable, so moving a project to Fusion only requires ensuring the executable your code location resolves is the Fusion executable. There is no feature flag to turn on and nothing to configure in Dagster+.
Requirements
Use dagster-dbt 0.29.32 or later, which ships alongside dagster 1.13.32 and includes the fixes that moved Fusion support from preview to beta.
Use Fusion 2.0.0 or later. Pre-release Fusion builds (2.0.0-preview.*) are not supported. For example, they leave models that have no ref() or source() out of the graph that selections run against.
To install Fusion from PyPI with the dagster-dbt[dbt] extra, use dagster-dbt 0.29.28 or later. Earlier releases have no such extra. Releases before 0.29.26 also install dbt-core, which conflicts with Fusion's dbt package, and 0.29.26 and 0.29.27 fail to import without dbt Core with ModuleNotFoundError: No module named 'dateutil'.
How Dagster selects a dbt executable
DbtCliResource chooses an executable in this order:
- The
dbt_executableargument, if you set one. - The
dbt_executableof theDbtProjectit was built from, if set.DbtProjectComponentsets this from its owndbt_executableattribute. - An executable named
dbtfonPATH. - An executable named
dbtonPATH.
Dagster resolves this through PATH in the process that runs your code location.
A few code paths use the absence of dbt-core as the signal that they are running against Fusion. If dbt-core stays installed, those code paths behave as though you were on dbt Core. See Limitations for more information.
Set up a project on Fusion
There are two ways to install Fusion:
-
From PyPI, into the same environment as Dagster. This is the simplest option:
pip install 'dagster-dbt[dbt]'The extra installs
dbt, the PyPI package for Fusion, at a version range Dagster supports. That package is the Fusion engine and puts adbtexecutable in the environment, so Dagster finds Fusion with no further setup. Do not install any adapter package, such asdbt-snowflake: Fusion has its own warehouse support. -
As a standalone binary, following the dbt installation documentation. Then point Dagster at it as described below.
dagster-dbt does not install dbt Core — it is behind the dagster-dbt[dbt-core] extra. Any dbt adapter package, such as dbt-duckdb or dbt-snowflake, pulls dbt Core in, and its dbt entrypoint can then shadow the Fusion binary. Remove the adapter packages from the environment that runs your code location if you want dbt to resolve to Fusion.
Do not install Fusion's dbt PyPI package into an environment that also has dbt-core. Both distributions own the dbt import namespace and overwrite each other's files, so neither engine ends up working and pip reports no error. dagster-dbt detects this and raises an ImportError on import. If you install Fusion from PyPI, keep dbt-core, every adapter package, and the dagster-dbt[dbt-core] extra out of that environment. The dagster-dbt[dbt] and dagster-dbt[dbt-core] extras cannot be combined.
The dbt package on PyPI is a small source distribution. When it is installed, its build backend downloads the platform-specific Fusion wheel, over 100 MB, from dbt Labs' content delivery network (CDN) at https://public.cdn.getdbt.com/fs/wheels. As a result:
- The install fails with a connection error while building the
dbtwheel if the machine running it cannot reachpublic.cdn.getdbt.com. - A private PyPI mirror, or
pip download, captures only the source distribution, not the engine. - Lockfile hashes, such as those in
uv.lockor a--require-hashesrequirements file, cover only the source distribution, not the wheel it downloads.
If your build environment cannot reach the CDN, run pip wheel --no-deps dbt==<version> on a machine that can. pip wheel builds only for the machine it runs on, so run it on the operating system and processor architecture you deploy to, for example in a container built from your deployment's base image. Publish the resulting wheel to your private index and regenerate your lockfile against that index, so the recorded hashes cover the wheel. Alternatively, install Fusion as a standalone binary.
Either way, Fusion also downloads warehouse drivers from the same CDN the first time it connects. See Prepare warehouse drivers.
If you installed Fusion from PyPI, dbt already resolves to Fusion and you can skip to Prepare warehouse drivers. Otherwise, point Dagster at the Fusion binary:
Set the executable explicitly
If you use DbtProjectComponent, set dbt_executable in its defs.yaml. The component uses it both to prepare the project and to run your models. The value is a name on PATH or a path; a relative path is resolved from the folder containing the defs.yaml:
type: dagster_dbt.DbtProjectComponent
attributes:
project: '{{ project_root }}/path/to/dbt_project'
dbt_executable: /path/to/fusion/dbt
If you construct DbtCliResource yourself, pass the same setting to it, or to the DbtProject it is built from so preparation picks it up too:
from dagster_dbt import DbtCliResource, DbtProject
project = DbtProject(
project_dir="/path/to/dbt/project",
dbt_executable="/path/to/fusion/dbt",
)
dbt = DbtCliResource(project_dir=project)
Add a dbtf executable to PATH
Alternatively, add an executable named dbtf to PATH. Dagster prefers dbtf over dbt when no executable is set, so this selects Fusion regardless of what dbt resolves to.
dbtf is a name Dagster looks for, not one any dbt installer provides, so you create it yourself. The dbt installer does define dbtf, but as a shell alias, and Dagster cannot see a shell alias. Add a real executable or symlink to PATH instead, in your image build so it holds for the process that runs your code location:
ln -s /path/to/fusion/dbt ~/.local/bin/dbtf
Prepare warehouse drivers
Fusion does not use dbt adapter packages. The first time it connects to a warehouse, it downloads a database driver from dbt Labs' CDN (public.cdn.getdbt.com) and caches it under ~/.cache/com.getdbt/. The process that runs your dbt models therefore needs network access to that CDN, or a cache that already holds the driver.
In a container image, warm the cache at build time so runs don't download the driver on every cold start, for example by running dbt debug or dbt parse against your project in the image build as the user that runs your code location.
Limitations
Dagster's Fusion support is in beta and has the following known gaps. Confirm that none of them block your project before you migrate.
Column metadata needs a dbt-side macro, and row counts are unavailable
fetch_column_metadata() and fetch_row_counts() read the warehouse through dbt Core's adapter, which Fusion does not provide — Dagster skips adapter initialization when the dbt executable reports a 2.x version. On Fusion both methods log a warning and pass dbt events through unchanged, so a pipeline that calls them runs on either engine without failing.
Column schema and column lineage are still available on Fusion through the dagster dbt package's log_column_level_metadata macro, which introspects over the connection dbt already holds rather than one Dagster opens. Add the package to packages.yml or dependencies.yml and run dbt deps:
packages:
- git: 'https://github.com/dagster-io/dagster.git'
subdirectory: 'python_modules/libraries/dagster-dbt/dbt_packages/dagster'
revision: DAGSTER_VERSION # replace with the version of `dagster` you are using.
Then enable the macro as a post-hook on the resources that should emit it:
models:
+post-hook:
- '{{ dagster.log_column_level_metadata() }}'
seeds:
+post-hook:
- '{{ dagster.log_column_level_metadata() }}'
snapshots:
+post-hook:
- '{{ dagster.log_column_level_metadata() }}'
With the hook in place, a plain .stream() attaches dagster/column_schema and dagster/column_lineage; no fetch_column_metadata() call is involved. Note that dagster-dbt logs a deprecation notice for this macro pointing at fetch_column_metadata() — on Fusion, that method cannot work, and the macro is the supported route.
Row counts have no equivalent on Fusion. Track #34227.
Non-default selections run dbt list
With dbt-core installed, Dagster evaluates select, exclude, and selector against the manifest in Python. Without it, Dagster reads the default selection straight from the manifest, but evaluates any other selection by running dbt list against your project. For that, @dbt_assets needs the project: pass a DbtProject as project, or the definitions fail to load with DagsterDbtCoreNotInstalledError. DbtProjectComponent passes its project for you. Selections built from those assets, such as build_dbt_asset_selection and build_schedule_from_dbt_selection, reuse that project.
Dagster runs dbt list every time it evaluates such a selection: when definitions load in each code server, run worker, and step process, and whenever a selection built with build_dbt_asset_selection resolves. Each evaluation adds the time of one or more dbt list invocations. Tracked in #34356. Wherever this happens, the following must be present, not just the manifest:
- The dbt project directory.
- A
profiles.ymlthat resolves your target. - Every environment variable the profile reads with
env_var().dbt listdoesn't connect to the warehouse, so the values don't have to be valid credentials.
Also run dbt deps when you build your image. If the project's packages aren't installed, Fusion installs them during dbt list, which needs network access to the package sources and a writable project directory.
Fusion's own compatibility surface
Fusion has adapter coverage and feature gaps of its own, independent of Dagster. Validate your project against dbt Labs' Fusion upgrade documentation as well.
Verify your setup
From the environment your code location runs in, confirm which executable Dagster will pick and that it reports a 2.x version:
which dbtf || which dbt
dbtf --version || dbt --version
Unless you set dbt_executable, Dagster uses dbtf if it is on PATH and otherwise falls back to dbt, so your models run on whichever engine that resolves to. If you did set it, run that executable with --version instead.