dbt SQL transformation framework with dependency-aware builds, data tests and distinct open-source and product distributions.
Overview dbt turns SQL model definitions into warehouse tables and views, manages their dependencies and runs data-quality tests. Current documentation distinguishes the maintained Python-based v1 generation from Rust-based v2, and separates the Apache-licensed OSS runtime from the customized dbt product distribution and hosted platform.[1] [2]
Contents Modeling and validation A dbt project organizes SQL queries as models that reference other models and sources. dbt handles the surrounding table or view creation and dependency order. Data tests are separate queries designed to return records that violate an assertion. Built-in checks cover uniqueness, nulls, accepted values and relationships, while reusable custom tests encode project-specific rules.[5] [6]
Incremental processing Incremental models first build a table and subsequently process the source rows selected by the model's filtering logic. Schema-change settings can reject differences, add columns or synchronize columns, but they do not populate a newly added column for old records. Historical values need a deliberate update or refresh. The documentation also limits automatic schema-change tracking to top-level columns rather than nested changes.[7]
Generations and deployment The original Python implementation remains maintained on the repository's v1 branch. The main branch now contains the Rust-based v2 source, and documentation identifies v2 as the default generation for new installation. Its published architecture matrix includes macOS and Linux on x86-64 and ARM, and Windows on x86-64; Windows ARM is not yet listed as supported. A v1 environment and a v2 binary are distinct deployment choices.[1] [2]
Adapter and project migration V2 uses ADBC-based adapter drivers rather than v1's Python adapter libraries. The documented distribution obtains drivers on first use and caches them. Upgrading also requires resolving deprecated project behavior, not simply replacing an executable. Missing macro or adapter-method calls may fail earlier, and adapter availability can differ between local development and the hosted platform. Existing projects need review against the selected generation.[8]
Distribution and licensing The repository source and dbt OSS runtime use Apache License 2.0. The customized dbt product distribution has a separate product license, and platform-feature access can require an account governed by additional terms. The OSS installation page lists the project language, dependency semantics and standard commands such as build, test and compile. Hosted scheduling and collaboration should not be inferred to accompany every local installation.[1] [2] [3] [4]
Substitution considerations dbt is an alternative to SQLMesh for organizing SQL transformations and checking their outputs. The overlap concerns models, dependencies and validation, rather than identical state or deployment planning. Selecting dbt requires checking the actual distribution, generation, adapters and operating arrangement. Warehouse execution remains separate from compiling a project; no migration test or comparative performance result is claimed.[5] [6] [8] [9]
References What is dbt? Framework, v1/v2 and local versus hosted use
vendor · retrieved 2026-10-07 dbt repository v1 branch, v2 Rust source, distribution and architecture matrix
vendor · retrieved 2026-10-07 Install dbt OSS Apache runtime, project language and standard commands
vendor · retrieved 2026-10-07 dbt Product Licensing Agreement Product distribution and separate platform-feature access terms
vendor · retrieved 2026-10-07 SQL models Model queries, materialization and dependency references
vendor · retrieved 2026-10-07 Data tests Queries selecting failing rows and reusable tests
vendor · retrieved 2026-10-07 Incremental models Filtering, schema changes and absence of automatic historical backfill
vendor · retrieved 2026-10-07 Upgrading to v2 ADBC drivers and removed/deprecated behavior
vendor · retrieved 2026-10-07 SQLMesh overview SQL/Python transformation and plan workflows
vendor · retrieved 2026-10-07 Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.