# dbt

SQL transformation framework with dependency\-aware builds, data tests and distinct open\-source and product distributions\.

ID: Q1217 · Revision: 1265

Type: software · License: Apache\-2\.0 source and dbt OSS runtime; the customized dbt distribution uses the dbt Product Licensing Agreement\.[^repo][^oss][^license] · Status: active

Website: https://docs.getdbt.com/



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\.[^intro][^repo]

## 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\.[^models][^tests]

## 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\.[^incremental]

## 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\.[^intro][^repo]

## 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\.[^upgrade]

## 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\.[^repo][^oss][^license][^intro]

## Substitution considerations

dbt is an alternative to [SQLMesh](/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\.[^models][^tests][^target][^upgrade]

## Capabilities and substitutions

### Dependency\-aware SQL builds — supported

Models define queries and relationships, with dbt managing their materialization\.[^models]

Use case: Version\-controlled SQL data transformation and validation · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Data\-quality assertions — supported

Built\-in and custom SQL tests identify failing records\.[^tests]

Use case: Version\-controlled SQL data transformation and validation · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Incremental schema evolution — limited

Schema\-change options do not backfill newly added column values in historical rows\.[^incremental]

Use case: Version\-controlled SQL data transformation and validation · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### [Substitute for SQLMesh](/sqlmesh) — limited

Can replace SQLMesh for dependency\-managed SQL transformations and data assertions when projects are rebuilt for dbt\. SQLMesh state, plans and virtual\-environment behavior are not assumed portable\.[^models][^tests][^target]

Use case: Version\-controlled SQL data transformation and validation · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

## References

[^intro]: [What is dbt?](<https://docs.getdbt.com/docs/introduction>) — Framework, v1/v2 and local versus hosted use (vendor; retrieved 2026-10-07T17:45:22Z)

[^repo]: [dbt repository](<https://github.com/dbt-labs/dbt>) — v1 branch, v2 Rust source, distribution and architecture matrix (vendor; retrieved 2026-10-07T17:45:01Z)

[^oss]: [Install dbt OSS](<https://docs.getdbt.com/docs/local/install-dbt-v2>) — Apache runtime, project language and standard commands (vendor; retrieved 2026-10-07T17:45:43Z)

[^license]: [dbt Product Licensing Agreement](<https://www.getdbt.com/dbt-product-license-agreement>) — Product distribution and separate platform\-feature access terms (vendor; retrieved 2026-10-07T17:45:22Z)

[^models]: [SQL models](<https://docs.getdbt.com/docs/build/sql-models>) — Model queries, materialization and dependency references (vendor; retrieved 2026-10-07T17:46:00Z)

[^tests]: [Data tests](<https://docs.getdbt.com/docs/build/data-tests>) — Queries selecting failing rows and reusable tests (vendor; retrieved 2026-10-07T17:46:10Z)

[^incremental]: [Incremental models](<https://docs.getdbt.com/docs/build/incremental-models>) — Filtering, schema changes and absence of automatic historical backfill (vendor; retrieved 2026-10-07T17:46:10Z)

[^upgrade]: [Upgrading to v2](<https://docs.getdbt.com/docs/dbt-versions/dbt-upgrade/upgrading-to-v2>) — ADBC drivers and removed/deprecated behavior (vendor; retrieved 2026-10-07T17:45:34Z)

[^target]: [SQLMesh overview](<https://sqlmesh.readthedocs.io/en/stable/>) — SQL/Python transformation and plan workflows (vendor; retrieved 2026-10-07T17:45:13Z)

Source revision: https://substitutefor.net/entities/Q1217?revision=1265
