dbt is being rebuilt on a new engine, and ClickHouse is part of that from the start. ClickHouse now works with the new Rust-based dbt engine, in both dbt OSS and dbt v2, and for the first time you can connect to ClickHouse from the dbt platform. Your project does not change: the same models, tests and profiles that run on dbt Core 1.x today run on the new engine; only the binary is different.
ClickHouse is the first community adapter on dbt OSS, dbt v2 and the dbt platform. dbt’s own first-party adapters are launching alongside us; we are the first from outside dbt Labs. The dbt Core 1.x Python adapter, dbt-clickhouse, is not going away: we keep it current with dbt 1.x releases and maintain both adapters in parallel.
Live status is tracked in ClickHouse/dbt-clickhouse#660 (v2 parity with v1, one sub-issue per area) and ClickHouse/dbt-clickhouse#555 (dbt v2).
Try ClickHouse in the dbt platform
If you’re interested in testing the Private Beta, sign up through dbt Labs’ private beta form. The form belongs to dbt Labs, so the information you submit goes to dbt Labs, not to ClickHouse. Once enabled, follow Connect ClickHouse in the dbt documentation to set up the connection.
Terminology and availability
dbt is available in several forms, and the same adapter can run in more than one of them. This table explains each name and the current level of ClickHouse support.
| Term | What it is | ClickHouse status and how to get it |
|---|---|---|
| dbt Core 1.x | The Python-based dbt engine, open source (Apache 2.0). Our adapter is dbt-clickhouse, maintained in the ClickHouse GitHub organization and installed alongside dbt-core. |
GA, maintained. Keeps receiving releases in parallel with dbt v2. |
| dbt OSS | Full rewrite of the dbt engine in Rust, open source (Apache 2.0). This new version includes all v1 features plus several performance improvements. | Beta. Follow the dbt v2 upgrade guide and the ClickHouse setup page for v2 in the dbt documentation. The ClickHouse adapter ships inside the dbt binary; there is no separate package to install. |
| dbt v2 | dbt OSS plus additional features from dbt Labs: SQL comprehension, static analysis, LSP, a VS Code extension and column awareness. Closed source, licensed under the dbt Product Licensing Agreement. | Beta. The adapter runs with the v2 binary, but the new SQL features are not available for ClickHouse yet. |
| dbt platform | Hosted dbt, formerly dbt Cloud: Studio IDE, scheduled jobs, environments, Catalog, Semantic Layer. The platform runs dbt v2 only, so ClickHouse in the platform means the v2 adapter. | Private Beta. See how to request access. Setup: Connect ClickHouse in the dbt documentation. |
Details on current status
Beta means that almost all v1 features work with documented limits. The features that are still pending are listed in v1 vs v2 parity and that list shrinks with every release. We recommend evaluating dbt v2 in development or staging first, and keeping production on dbt Core 1.x if your project depends on any of the pending features or you need the guarantees of a GA release.
We measure the dbt v2 adapter against the dbt Core 1.x integration test suite of dbt-clickhouse. Today, the adapter passes ~98% of the v1 suite (270 of the 276 tests that apply to dbt v2). The remaining failures are engine-side differences, not ClickHouse ones: query comments, query_id in run results and the check for a hook configured under both pre-hook and pre_hook. See v1 vs v2 parity for the feature-by-feature picture.
Next steps: query comments, query_id in run results, dbt source freshness from table metadata, fixes for the remaining bugs and passing the full v1 test suite to ensure full parity. The progress of all of these is tracked in ClickHouse/dbt-clickhouse#660, with one sub-issue per area.
GA is on the roadmap. We are working with dbt Labs on the timeline and will update this page when it’s ready.
Out of scope for Beta
Features exclusive to v2, such as the ClickHouse SQL intelligence (static analysis, LSP, column awareness), the Semantic Layer and additional dbt platform auth methods, are outside the Beta scope. Their status is covered in dbt v2 specific functionality.
v1 vs v2 parity
The tables below compare the features available in dbt-clickhouse (v1) with their status in the dbt v2 adapter. Every feature listed is supported in v1 unless the notes say otherwise; the status column is for dbt v2 and applies equally to dbt OSS. The evolution of every pending item is tracked in ClickHouse/dbt-clickhouse#660.
Supported works today · Partial works with limits · Not yet pending implementation.
Materializations
| Feature | What it does | dbt v2 | Notes |
|---|---|---|---|
view |
Standard dbt view. | Supported | |
table |
Full rebuild with engine and DDL options. | Supported | |
incremental |
Append or merge new rows. | Supported | |
materialized_view |
ClickHouse MV that transforms at insert time. | Supported | |
dictionary |
ClickHouse dictionary for key lookups and joins. | Supported | |
snapshot |
Type 2 slowly changing dimensions. | Supported | |
seed |
Load CSVs as tables. | Supported | Numeric column types are inferred as Int64/Float64 instead of Int32/Float32; use column_types to set them explicitly. |
ephemeral |
Inline CTE, no object created. | Supported | |
distributed_table, distributed_incremental |
Sharded tables behind a Distributed engine. | Supported | Self-managed clusters with cluster set in the profile, as in v1. |
Model configuration
| Feature | What it does | dbt v2 | Notes |
|---|---|---|---|
Engine, ORDER BY, PARTITION BY, PRIMARY KEY |
Core MergeTree DDL controls. | Supported | |
| TTL | Row and column expiration. | Supported | |
| Table and query settings | Per-model SETTINGS on DDL and on the insert. |
Supported | |
Projections, indexes, sql_header |
Secondary structures and prefix SQL. | Supported | |
| Model contracts and constraints | Column types and constraints enforced at build time. | Supported | |
| Schema evolution on incremental models | on_schema_change adds or syncs columns. |
Supported | |
Column codec and ttl |
Per-column compression and expiration. | Supported |
Testing and docs
| Feature | What it does | dbt v2 | Notes |
|---|---|---|---|
| Data tests | Generic and singular tests. | Supported | |
| Unit tests | Model logic against fixture inputs. | Supported | |
| Docs persistence | Descriptions written as ClickHouse comments. | Supported | |
| Catalog and docs generation | Column metadata for the docs site. | Supported |
Cluster and Cloud
| Feature | What it does | dbt v2 | Notes |
|---|---|---|---|
| ClickHouse Cloud | Recommended Beta setup. | Supported | |
| Multi-replica consistency | select_sequential_consistency and related read-after-write settings. |
Supported | |
ON CLUSTER and replicated engines |
DDL fan-out on self-managed clusters. | Supported | Set cluster in the profile. DDL fans out to every node, except on Replicated databases where it is not needed; disable_on_cluster turns it off per model. |
EXCHANGE TABLES |
Atomic swap on rebuild. | Supported | |
| Custom connection settings | Profile-level custom_settings. |
Supported | |
| ClickHouse server version | Minimum server version. | Supported | 25.3+ on both engines. Reading UUID columns on v2 requires 26.7+ (older servers cannot convert UUID to Arrow). |
Macros and operations
| Feature | What it does | dbt v2 | Notes |
|---|---|---|---|
| S3 table function macro | clickhouse_s3source() reads S3 directly in a model. |
Supported | |
| Cross-database macros | Helpers such as those in dbt-utils. |
Supported | |
| Grants | GRANT statements from model config. |
Supported | |
dbt clone |
Zero-copy CLONE AS between environments. |
Supported | MergeTree tables, seeds, snapshots and incrementals are cloned with CLONE AS; views and other engines fall back to views, as in v1. |
| Query ID in run results | query_id in adapter_response for system.query_log correlation. |
Not yet | |
query-comment |
Query comment configuration. | Not yet | query-comment: null is not honored yet. |
Connectivity and auth
| Feature | What it does | dbt v2 | Notes |
|---|---|---|---|
| Protocol | How dbt talks to ClickHouse. | Supported | ADBC (Arrow over HTTP) on v2; HTTP and native on v1. |
| Username and password, TLS | Standard auth. | Supported | |
| mTLS client certificates | client_cert, client_cert_key. |
Not yet | Driver work; the keys are accepted but ignored. |
| HTTP client options | connect_timeout, send_receive_timeout, sync_request_timeout, compress_block_size, server_host_name. |
Not yet | Accepted but ignored; server_host_name is unavailable. |
Not planned for v2
A few v1 options are deliberately not carried over to v2. They are listed here so the parity tables above only contain work that is planned.
| Feature | What it does in v1 | Why it is not planned |
|---|---|---|
verify: false |
Skips TLS certificate validation. | It keeps the encryption but drops the authentication, so anyone on the path can impersonate the server and read the credentials. v2 always validates certificates and ignores the key. Use a certificate signed by a CA the client trusts. Open an issue if you need it in v2. |
dbt v2 specific functionality
dbt v2 adds capabilities that have no equivalent in dbt Core 1.x. They are outside the Beta scope and will come later: most of them build on the engine’s understanding of the SQL dialect, which does not exist for ClickHouse yet, but we are working on it. Same legend as above, plus In progress for work under way. Tracked in ClickHouse/dbt-clickhouse#736.
| Feature | What it does | dbt v2 | Notes |
|---|---|---|---|
| ClickHouse SQL dialect in the engine | Dialect-aware SQL parsing that the static features below build on. | Not yet | Planned. |
| Static analysis | Compile-time SQL validation and type checking without querying the warehouse. | Not yet | Forced to off for ClickHouse projects until the dialect exists. |
| Column-level lineage in the dbt platform | Column lineage view built from the run artifacts. | Partial | Renders only with identifier quoting disabled in dbt_project.yml; the platform’s fallback parser rejects backtick-quoted names (dbt-labs/dbt#16646). |
| Column-level lineage from the engine | Lineage written by dbt docs generate for the local docs site. |
Not yet | Needs static analysis. |
| LSP and VS Code extension | Dialect-aware autocomplete and column awareness while editing. | Not yet | Needs the dialect. |
| Source freshness from table metadata | dbt source freshness without loaded_at_field, from the table’s last modification time. |
In progress | Being implemented. Today the command fails for sources without loaded_at_field. |
| Semantic Layer / MetricFlow | Metrics defined in dbt and queried through the Semantic Layer. | Not yet | ClickHouse support is merged in MetricFlow; we are working with dbt Labs to enable it in the Semantic Layer. |
| Record and replay of adapter calls | --fs-record / --fs-replay re-run a job without a warehouse. |
Partial | ClickHouse catalog details (ON CLUSTER, EXCHANGE, MV links) are not recorded, so a replay can render different DDL. |
| More authentication methods in the dbt platform | How the platform connects to ClickHouse. | Partial | Username and password only today; more methods are planned. |