dbt
dbt Integration
Transform dbt with Mage.
dbt integration is currently only supported when using Mage in Docker.
Overview
Build, run, and manage your dbt models with Mage.
Analytics engineers
With Mage and dbt combined, you can expand build and run complex data pipelines.
Data engineers
Simplify your data infrastructure and reduce the amount of redundant tools in your “modern” data stack. Replace dbt cloud and Airflow with Mage’s native integration with dbt.
Features
Schedule dbt model runs
Trigger your dbt model runs on a regular schedule, from an event, or via API request.
Run specific dbt models and their dependencies
Run all models and optionally exclude others
dbt models can depend on non-dbt related tasks
Examples:
- Build model after data ingestion from API
- Build model after another pipeline completes
Preview dbt model results as you write SQL
Build dynamic dbt pipelines using flexible variable interpolation
Examples:
{{ env_var('...') }}
{{ variables('...') }}
{{ mage_secret_var('...') }}
Automatically run dbt tests every time a pipeline runs
Write checks using dbt tests, then Mage will run them and fail the pipeline if the test results produce any failures.
Observability built-in
Monitor your dbt pipelines and get alerted when things break.
Supported connectors
dbt-bigquery
dbt-clickhouse
dbt-core
dbt-dremio
dbt-duckdb
dbt-mysql
dbt-postgres
dbt-redshift
dbt-snowflake
dbt-spark
dbt-sqlserver
dbt-synapse
dbt-trino
Tutorials
Was this page helpful?