dbt Fusion support#

Note

Available since Cosmos 1.11.0 when using ExecutionMode.LOCAL, and tested with ExecutionMode.WATCHER since Cosmos 1.14.0.

Context#

For dbt OSS, the open-source distribution of dbt 2, see dbt OSS support.

dbt Labs launched dbt Fusion on 28 May 2025. dbt Fusion is the next-generation dbt engine that enables real-time model validation, improved SQL parsing and state-aware orchestration. It is a unified approach that aims to merge dbt Core and dbt Cloud features via a completely new CLI, implemented in a different programming language (Rust, as opposed to Python). As part of this, dbt Labs are rewriting all dbt adapters (equivalent to Apache Airflow® providers) in Rust, starting from Snowflake. They are also changing the licensing model to a hybrid Open-Source and commercial license. We’re supporting dbt Fusion with a license-complaint integration. This integration enables teams to:

  • Use dbt Fusion locally for enhanced development experience with real-time validation

  • Deploy dbt Fusion on Astro for production compliance with ELv2 licensing restrictions

  • Maintain consistent workflows across development and production environments

Some reported dbt Fusion features include:
  • Lightning-fast performance: Up to 30× faster parsing speeds

  • Smarter orchestration: Build only what’s changed, thanks to Fusion’s state-awareness

  • Real-time dev experience: Catch errors instantly and explore lineage as you code, if you’re using the VS Code extension

  • Multi-dialect support: Instant error detection across Snowflake, Databricks, BigQuery, and Redshift SQL dialects

Note

dbt v2 reached general availability in September 2026, and dbt Labs now calls dbt Fusion simply “dbt”. For the data platforms it supports, see About data platform connections. Cosmos CI tests dbt Fusion against Snowflake and BigQuery.

Support#

Cosmos 1.11.0 adds initial support for running dbt Fusion with Cosmos when using ExecutionMode.LOCAL.

Cosmos CI has also run ExecutionMode.WATCHER with dbt Fusion since Cosmos 1.14.0. See Use with dbt Fusion and dbt OSS for the configuration.

We do not have a solution for using ExecutionMode.AIRFLOW_ASYNC.

How to use#

  1. Install Cosmos 1.11.0 or later

    pip install "astronomer-cosmos>=1.11.0"
    
  2. Install dbt Fusion in your Airflow deployment

    End-users should install the dbt Fusion package themselves. An example of how to do this in Astro would be to add the following lines in your Dockerfile:

    USER root
    RUN apt install -y curl
    RUN curl -fsSL https://public.cdn.getdbt.com/fs/install/install.sh | sh -s -- --update
    
  3. Update your DbtDag or DbtTaskGroup to use the dbt Fusion binary

    Example:

    DbtDag(
        ...,
        execution_config=ExecutionConfig(dbt_executable_path="/home/astro/.local/bin/dbt"),
    )
    

    If dbt Core or dbt OSS is installed in the Airflow environment, also set invocation_mode=InvocationMode.SUBPROCESS in ExecutionConfig and in RenderConfig (with the same dbt_executable_path). Otherwise Cosmos runs that dbt in-process instead of the dbt Fusion binary. See Use with dbt Fusion and dbt OSS for a full example.

Limitations#

  • This feature is available since Cosmos 1.11.0

  • Cosmos does not support dbt Fusion when using ExecutionMode.AIRFLOW_ASYNC

To support dbt Fusion, Cosmos modified its interaction with dbt. This works with the latest versions of dbt-core, but may not work with older versions. If you want to continue using dbt-core and was affected, set the environment variable AIRFLOW__COSMOS__PRE_DBT_FUSION=1 and Cosmos interaction with dbt-core will work as previous versions.