call/text us now

+1 (855) 6-KANERI

Databricks dbt: How to Run dbt on the Lakehouse
Business leaders standing and talking in front of a large presentation screen showing an Enter prompt
Table of Contents

Databricks dbt: How to Run dbt on the Lakehouse

TL;DR

For Databricks dbt, most teams should run free dbt Core through a Lakeflow Jobs dbt task. Choose the paid dbt platform (formerly dbt Cloud) when many analysts need a browser editor and managed testing. Keep Airflow or Dagster in charge only if they already run work across many systems. Let Lakeflow pipelines load streaming data, and let dbt own the tested business tables. The dbt-databricks adapter, version 1.13.0 since October 29, 2026, connects the two. Your bill depends on warehouse size and how much data each run rebuilds, so prove one area first.

Key Takeaways

  • Databricks dbt is a division of labor, because dbt holds the SQL logic, tests and lineage while Databricks stores, secures and computes the data.
  • The dbt-databricks adapter is the supported connector, so Databricks recommends it over dbt-spark.
  • A Lakeflow Jobs dbt task runs dbt Core from a Git folder on a serverless or pro SQL warehouse, with no extra license fee.
  • Incremental models with the right strategy, such as merge, replace_where or microbatch, do more for the bill than any warehouse setting.
  • Unity Catalog grants, service principals and query tags also turn a dbt project into governed, cost-attributable production work.
  • Start with one domain, prove parity and cost, then scale out domain by domain.
Kanerika infographic of the Databricks dbt division of labor: dbt owns logic, tests and lineage, Databricks owns storage, governance and compute

The 8 a.m. Dashboard Nobody Wants to Own

Picture a revenue dashboard that the CFO opens at 8 a.m. every weekday. Behind it sit eleven notebooks that someone runs by hand in a set order. Over time, finance, sales operations and the data team have each patched them.

One Monday a sales-ops analyst renames a column. The notebook that joins bookings to invoices still runs, but now it drops a region. So the dashboard shows a clean number that is wrong, and nobody notices until the quarterly review.

Nothing in this setup is broken in the usual sense, since the cluster ran and every cell executed. What is missing is a contract: a tested, versioned definition of how raw bookings become reported revenue.

That gap is why teams put dbt on top of Databricks. This guide covers how the pairing works and how to set it up. After that, it compares where to run dbt, what it costs and how to move an existing project across without breaking the 8 a.m. number.

What Databricks dbt Means: Two Tools, One Division of Labor

Databricks dbt is not a single product. Instead, it is two tools that each do one job, joined by an open-source adapter.

dbt is a transformation framework, so you write each model as a SELECT statement in a SQL file. Then dbt works out the order, builds the tables and runs the tests you declare. For the basics, Kanerika has a separate guide on what dbt is and how it works.

Databricks is the platform underneath, as covered in Kanerika’s data lakehouse primer. It stores tables as Delta Lake files and governs access through Unity Catalog. It also supplies the compute, usually a SQL warehouse, that executes the SQL dbt generates.

In the 8 a.m. example, the revenue logic moves out of eleven notebooks and into a dbt project in Git. From then on, every change goes through review and every model carries tests. This is the ELT pattern in practice, because raw data loads first and is then transformed where it lives.

dbt doesDatabricks does
Holds business logic as version-controlled SQL and Python modelsStores each model’s output as a Delta table in Unity Catalog
Builds a dependency graph, then runs models in orderExecutes the generated SQL on a SQL warehouse or cluster
Runs data tests such as unique, not null and relationshipsEnforces grants, row filters and column masks on results
Generates documentation as well as model-level lineageRecords table and column lineage plus audit and billing data
Chooses how each model is materialized and refreshedProvides Delta features such as MERGE and liquid clustering

The split pays off when something fails. A failed test is a dbt problem with a clear owner. A slow warehouse, by contrast, is a Databricks sizing question, so teams that keep the two apart debug faster.

Kanerika Service

Data Engineering Services

Kanerika builds tested, governed transformation pipelines on Databricks, from dbt project design and CI/CD to Unity Catalog access and run monitoring.

Explore Data Engineering

How dbt Runs on the Lakehouse: From a Git Commit to a Governed Delta Table

A dbt run on Databricks follows the same path every time, from a commit in Git to a tested table in Unity Catalog. Knowing that path tells you where each control belongs.

Take a change to the bookings model. First, an engineer edits the SQL, opens a pull request and lets CI build the changed models in a dev schema. Once it merges, the production job picks up the new code and rebuilds only what depends on it.

  1. Commit. The model change lands in a Git repository, which Databricks reads through a Git folder.
  2. CI check. A pipeline then runs dbt build on the changed models against a development catalog.
  3. Job trigger. A Lakeflow Jobs dbt task, the dbt platform or an external orchestrator starts the production run.
  4. SQL execution. Next, dbt compiles each model to SQL and sends it to a serverless or pro SQL warehouse.
  5. Delta write. Results land as Delta tables or views in the production catalog and schema.
  6. Tests as gates. Tests run after each model, so a failure stops downstream models from building on bad data.
  7. Lineage. Finally, dbt docs and Unity Catalog lineage both record what was built from what.

Steps four to seven happen inside Databricks. For that reason, the SQL warehouse, the catalog layout and the service principal that runs the job matter as much as the SQL itself.

Kanerika infographic of a dbt run on Databricks from Git commit and CI check through the dbt task and SQL warehouse to tested Delta tables

The same flow is also the backbone of data pipeline automation, because every step after the commit runs without a person pressing a button.

Medallion Layers as dbt Models

Many Databricks estates already organize data into bronze, silver and gold layers, the lakehouse medallion architecture. The dbt structure maps onto those layers cleanly, which is one reason the pairing catches on.

  • Bronze as sources. Raw tables loaded by ingestion tools become dbt sources, with freshness checks but no transformation.
  • Silver as staging models. One staging model per source cleans types and renames columns, as well as removing duplicates.
  • Gold as marts. Business models then join staging tables into facts and dimensions that dashboards and AI features read.

In the revenue case, bronze holds raw bookings and invoices, while silver holds cleaned versions of each. A single gold model then defines reported revenue. So a rename in silver now fails a test before it can reach the CFO’s dashboard.

The dbt-databricks Adapter: Versions, Requirements and What It Adds

The adapter is the package that lets dbt talk to Databricks, and it decides which Databricks features your models can use. Databricks recommends dbt-databricks over dbt-spark, describing it as a fork of dbt-spark optimized for Databricks.

The latest release on PyPI is 1.13.0, published on October 29, 2026. It needs Python 3.10 or later, as well as dbt-core 1.11.2 or later and below 1.12.7. Databricks’ own dbt setup page recommends 1.8.0 or later.

Version pinning deserves attention. According to the dbt Databricks configuration reference, release 1.11 needs Databricks Runtime 12.2 LTS or higher for incremental models. The reason is a fix: it now inserts by column name to stop column-order mix-ups. So teams with incremental models on older runtimes should pin 1.10.x until those clusters move up.

The adapter also exposes Databricks features as plain model configs, so engineers do not write DDL by hand.

CapabilityConfig keyWhat it does
Liquid clusteringliquid_clustered_byClusters a Delta table on chosen columns, available since adapter 1.6.2
Table propertiestblpropertiesSets Delta table properties when the table is created
Unity Catalog tagsdatabricks_tagsApplies tags to tables and columns through ALTER statements
Row filtersrow_filterRestricts rows on table, incremental, materialized view and streaming table models (adapter 1.12+)
Python model computesubmission_methodRuns Python models on an all-purpose, job or serverless cluster

Two details catch teams out. Tags applied through databricks_tags stay in place, because dbt cannot remove them later. Also, from version 1.12, tags set at several config levels merge rather than replace each other. For layout choices, Kanerika’s guide to liquid clustering on Databricks explains when clustering beats partitioning.

Datasheet

Build a Modern Data and AI Foundation with Databricks

How Kanerika designs a Databricks lakehouse foundation, from medallion layers and governance to the pipelines that feed analytics and AI.

View the Datasheet →

How to Set Up dbt on Databricks, Step by Step

Setting up dbt on Databricks takes six steps, and the first working model often runs on the same day. The steps below follow the Databricks dbt Core guide, with production habits added.

Before you start, you need a Databricks workspace with Unity Catalog and a serverless or pro SQL warehouse. You also need the Databricks SQL entitlement and a local Python 3.10 environment.

  1. Install the adapter. Create a virtual environment, then install dbt-databricks, which pulls in a compatible dbt-core.
python3 -m venv .venv
source .venv/bin/activate
pip install dbt-databricks
dbt init revenue_project
  1. Define targets in profiles.yml. Point a dev target and a prod target at different catalogs, using the SQL warehouse HTTP path from its connection details.
revenue_project:
  target: dev
  outputs:
    dev:
      type: databricks
      host: your-workspace.cloud.databricks.com
      http_path: /sql/1.0/warehouses/your-warehouse-id
      catalog: dev
      schema: revenue
      auth_type: oauth
    prod:
      type: databricks
      host: your-workspace.cloud.databricks.com
      http_path: /sql/1.0/warehouses/your-warehouse-id
      catalog: prod
      schema: revenue
      auth_type: oauth
      client_id: "{{ env_var('DBT_CLIENT_ID') }}"
      client_secret: "{{ env_var('DBT_CLIENT_SECRET') }}"
  1. Check the connection. Run dbt debug from the project folder. When you use OAuth, a browser window asks you to sign in.
  2. Write the first model. Add a staging model that cleans one source table.
-- models/staging/stg_bookings.sql
{{ config(materialized='view') }}

select
  booking_id,
  cast(booked_at as date) as booking_date,
  upper(region_code)      as region,
  amount_usd
from {{ source('crm', 'bookings') }}
where booking_id is not null
  1. Add the first test. Declare tests next to the model so that dbt build checks them on every run.
# models/staging/stg_bookings.yml
version: 2
models:
  - name: stg_bookings
    columns:
      - name: booking_id
        tests: [unique, not_null]
      - name: region
        tests: [not_null]
  1. Commit to a Git folder. Push the project to Git and connect it to a Databricks Git folder, because jobs cannot run dbt projects from DBFS.

From here, every new model follows the same loop. You write it, test it locally against dev, open a pull request and then merge.

Authentication for Production

Personal access tokens are fine on a laptop. However, they tie production runs to one person’s account, so the 8 a.m. job fails when that person leaves or rotates the token.

For production, Databricks recommends OAuth. Where a token is still needed, it advises tokens that belong to a service principal rather than a workspace user.

A service principal also gives every production table one clear owner, which keeps grants and audits simple. Kanerika’s dbt best practices guide covers project structure and naming habits that pair well with this setup.

Checklist

Data Engineering Checklist for Enterprise Teams

Check sources, owners, tests, environments and access before a transformation project goes to production, with Kanerika’s data engineering checklist.

Get the Checklist →

Materializations and Incremental Strategies on Delta

A materialization tells dbt what to build for a model: a view, a table or something that refreshes in place. On Databricks the choice affects both freshness and cost, because it decides how much data each run rewrites.

Views cost nothing to build, although they recompute on every query. Tables rebuild in full on every run, which is simple but expensive at scale. Incremental models, on the other hand, process only new or changed rows, and that is where most savings come from.

MaterializationWhen to use itCost behavior
viewLight staging logic that people query rarelyNo build cost, since compute is paid at query time
tableSmall or medium marts that change heavilyFull rebuild on every run
incrementalLarge fact tables with new or updated rowsProcesses only the new slice after the first run
materialized_viewAggregates that Databricks should keep freshRefresh is managed by Databricks
streaming_tableAppend-heavy feeds that arrive continuouslyProcesses new data as soon as it lands

Incremental models then need a strategy, set with the incremental_strategy config. The adapter supports six of them.

StrategyHow it writesGood fit
merge (default)Updates rows matched on unique_key, then inserts the restDimensions and facts with late updates
appendInserts new rows onlyImmutable event logs
insert_overwriteOverwrites partitions, or the whole table when partition_by is absentPartitioned daily loads
replace_whereReplaces rows that match incremental_predicatesReprocessing a date window
delete+insertDeletes matches on unique_key, then inserts (adapter 1.11 and later)Batch corrections by key
microbatchUses replace_where with predicates built from event_timeLarge time-series backfills

Choosing an Incremental Strategy

Start from how the source changes, not from the strategy list. In other words, ask whether old rows can change, and how far back.

Bookings in the revenue example can be amended for up to seven days after the deal closes. A plain append would miss those edits, while a full rebuild would rewrite years of history every morning. So a replace_where model that reprocesses the last seven days covers late edits and leaves older data alone.

{{ config(
    materialized='incremental',
    incremental_strategy='replace_where',
    incremental_predicates=["booking_date >= current_date() - interval 7 days"],
    liquid_clustered_by=['booking_date', 'region']
) }}

select * from {{ ref('stg_bookings') }}
{% if is_incremental() %}
where booking_date >= current_date() - interval 7 days
{% endif %}

Two cautions apply here. A merge without a unique_key behaves like append and can create duplicates. Also, the replace_where strategy inserts columns by position, so a reordered SELECT can silently put values in the wrong column.

Kanerika infographic choosing a dbt incremental strategy on Delta by how source rows change: replace_where, merge, append or microbatch

Where dbt Runs: Lakeflow Jobs dbt Task, dbt Platform or an External Orchestrator

dbt itself does not schedule anything, so every project needs something to trigger it. There are three common choices, and the right one depends on what your team already runs.

The Lakeflow Jobs dbt task is the native option. It runs dbt Core commands such as dbt deps, dbt seed and dbt run from a Git folder, on a serverless or pro SQL warehouse.

When Unity Catalog and serverless jobs are enabled, the task defaults to serverless compute. Some teams develop against a SQL warehouse but run production on job compute. Databricks warns the two can differ in performance and SQL support, so keep both on the same Databricks Runtime version. Kanerika’s guide to Databricks workflows covers job design in more depth.

The dbt Task in Code, Plus a CI Check

In code, the task is a short block of JSON sent to the Jobs API. The version below trims the example in the Databricks docs, which also defines the single-node job cluster that runs the dbt CLI.

{
  "name": "jaffle_shop dbt job",
  "max_concurrent_runs": 1,
  "git_source": {
    "git_url": "https://github.com/dbt-labs/jaffle_shop",
    "git_provider": "gitHub",
    "git_branch": "main"
  },
  "tasks": [
    {
      "task_key": "transform",
      "job_cluster_key": "dbt_CLI",
      "dbt_task": {
        "commands": ["dbt deps", "dbt seed", "dbt run"],
        "warehouse_id": "1a234b567c8de912"
      },
      "libraries": [
        { "pypi": { "package": "dbt-databricks>=1.0.0,<2.0.0" } }
      ]
    }
  ]
}

Commands run in the order listed, so dependencies install first and seed files load before the models build. A pull-request check is just as short. Kanerika’s dbt best practices guide presets dbt build --select state:modified+ --defer --state ./prod-artifacts in its CI template. That command builds and tests only the changed models and their children, and it reads every unchanged parent from the last production run.

The dbt platform is the hosted product from dbt Labs. It adds a browser IDE, managed CI, scheduling and hosted docs, so it suits teams with many analysts who do not live in a terminal. Those teams can now let Lakeflow trigger and watch their dbt platform jobs through a dbt platform task, so failures and retries show in one place. Databricks labeled that task Beta in its April 16, 2026 post, so treat it as a preview until general availability.

OptionWho it suitsWhat you manageLicense cost
Lakeflow Jobs dbt task (dbt Core)Engineering-led teams already on DatabricksCI pipeline, Git and alertsNone beyond Databricks compute
dbt platformAnalyst-heavy teams that want an IDE and managed CISeats, environments and connectionsPer-seat plans, as shown in the cost section
External orchestrator (Airflow, Dagster)Teams that coordinate many systems beyond DatabricksThe orchestrator as well as the dbt runsDepends on the orchestrator

For a wider comparison of schedulers, see Kanerika’s roundup of data orchestration tools.

Kanerika infographic of where to run dbt on Databricks: the Lakeflow Jobs dbt task, the dbt platform or an external orchestrator

dbt vs Lakeflow Pipelines: When to Use Which, and Running Both

Lakeflow pipelines, built on Apache Spark Declarative Pipelines, also define tables declaratively. Because of that overlap, teams often think they must pick one, when the stronger pattern uses both.

Pipelines are strongest at continuous ingestion, change data capture and streaming. dbt, on the other hand, is strongest at SQL business logic, tests, documentation and code review. A sensible split lets Lakeflow pipelines, with Auto Loader for incremental ingestion, fill bronze, while dbt owns silver and gold.

NeedBetter fit
Streaming files or CDC into bronzeLakeflow pipelines with Auto Loader
Business rules, joins and metrics in silver and golddbt
Data tests reviewed in pull requestsdbt
Expectations on streaming qualityLakeflow pipelines
One schedule for bothA Lakeflow job with a pipeline task, then a dbt task

Lakeflow also covers ingestion and job orchestration beyond dbt, as explained in this overview of Databricks Lakeflow.

Decision Framework: Which Databricks dbt Setup Fits Your Team

The best setup is the one your team can run at 2 a.m. without help. Five questions narrow the choice quickly.

  1. Team skills. Engineers who are comfortable with Git and CI can run dbt Core well, while analyst-heavy teams gain more from the dbt platform IDE.
  2. Orchestration you already own. When Airflow or Dagster already coordinates dozens of systems, call dbt from it. Otherwise, use the dbt task.
  3. Freshness SLA. Daily or hourly batch fits a scheduled dbt job, whereas minute-level freshness belongs in Lakeflow pipelines with dbt downstream.
  4. Governance needs. Regulated data calls for service principals, separate catalogs per environment and row filters from day one.
  5. License budget. dbt Core has no license fee, although the dbt platform adds per-seat costs that grow with headcount.

Now apply these to the revenue case. The team has four engineers, no external orchestrator and an 8 a.m. SLA.

The answer is dbt Core on a serverless SQL warehouse, triggered by a Lakeflow Jobs dbt task at 6 a.m. Tests then gate the gold model, so a failed check blocks the dashboard refresh instead of publishing a wrong number.

Signals It Is Time to Add dbt to an Existing Databricks Estate

  • Business logic is spread across notebooks that only their authors understand.
  • The same metric is defined differently in two dashboards, so meetings start with a debate about numbers.
  • A column change breaks reports, and nobody knows which ones in advance.
  • Code reviews cover application code but not SQL transformations.
  • New hires take weeks to learn how a core table is built, because nothing documents it.

Two or more of these signals usually justify a dbt pilot on one domain.

Talk to Kanerika

Planning a dbt Pilot on Databricks?

Kanerika will review your notebooks, jobs and reports, pick the domain to pilot first and map the run option, governance and cost guardrails that fit your team.

Schedule a Demo →

Cost and Effort: What Drives the Bill

Running dbt on Databricks has no single price, because the bill comes from several places at once. Knowing the drivers lets you control them before the first invoice.

Compute is usually the largest line. Pro and serverless SQL warehouses run queries on the Databricks Photon engine, so warehouse size, auto-stop settings and run frequency decide what you pay. Kanerika’s guide to Databricks serverless explains how serverless billing behaves.

License Cost: dbt Core vs the dbt Platform

License cost depends on the run option. On the Lakeflow Jobs dbt task, the license line is zero, because dbt Core is open source. On the dbt platform, the November 2026 dbt pricing page lists a free Developer plan with one seat and 3,000 successful models a month. That suits a single analyst but not a team.

The four-engineer revenue team would sit on Starter at $100 per user per month, or about $400 a month and $4,800 a year. That plan caps out at five developer seats and 15,000 models, so the team would hit both limits as more domains move over. Past that point, Enterprise and Enterprise+ plans are custom-priced, with 100,000 models listed.

Cost driverLever
SQL warehouse type and size per environmentUse small, auto-stopping dev warehouses, and size prod to the SLA rather than the peak
Full refresh versus incremental runsMake large facts incremental, so each run reprocesses only the changed window
Run frequencyMatch the schedule to how often people actually read the data
dbt platform seatsGive seats to model authors, then use dbt Core where engineers can
Engineering time for CI and orchestrationReuse one CI template and one job pattern across domains

Attribution matters as much as the total. Databricks says query tags let teams see dbt cost by team through system tables. Tag every production run with its domain, so each team sees its own share. On the revenue project, for example, the 6 a.m. job would carry tags such as team=finance and domain=revenue. In its April 16, 2026 post, Databricks listed granular cost monitoring for Databricks SQL as a Private Preview. For tuning beyond dbt, see Kanerika’s guide to Databricks performance optimization.

Kanerika infographic of what drives the Databricks dbt bill: warehouse size, full refresh versus incremental, dbt platform seats and query tags

Governance, Testing and Lineage with Unity Catalog

Governance decides who can change, read and trust each table that dbt builds. Unity Catalog supplies the controls, while dbt makes them repeatable in code.

Start with environments. Separate dev and prod catalogs mean a developer’s test run can never overwrite a production table. Then make a service principal the owner of every production table, so access does not depend on any one person. Kanerika’s guide to Unity Catalog permissions and lineage covers the grant model in detail.

A practical checklist for a governed project:

  • Grants per environment catalog. Engineers write to dev, whereas only the production service principal writes to prod.
  • Row filters in config. Sensitive marts carry row filters defined in the model, so reviewers check them like any other code.
  • Query tags and system tables. Every run is tagged, so cost and usage trace back to a team.

Row filters are the item teams most often skip, so take the revenue mart as an example. Its model config sets a row_filter that points to a SQL function, and that function checks which group the reader belongs to. Regional sales leads then see only their own region, while finance sees every row in the same table.

A column mask works the same way for single fields, such as hiding customer margin from sales. Because both rules live in the dbt project, a change to who sees what arrives as a pull request. Reviewers read it, test it and approve it like any other code, instead of finding a grant changed by hand.

Lineage then comes from two sides. The dbt docs site shows how models depend on each other. Unity Catalog, meanwhile, records table and column lineage across notebooks, jobs and dashboards.

Migrating an Existing dbt Project to Databricks

Many teams arrive at Databricks with a dbt project already running on another warehouse. Moving it is mostly mechanical, but small differences decide whether the numbers still match.

A Snowflake-based project, for example, keeps its models, tests and folder structure. What changes is the adapter, the connection profile and any SQL that uses Snowflake-only functions or syntax.

  1. Swap the adapter and profiles. Install dbt-databricks, then add Databricks targets to profiles.yml.
  2. Fix dialect and macros. Replace warehouse-specific functions, and also review custom macros that emit raw SQL. A Snowflake model that uses LATERAL FLATTEN over semi-structured data, for example, becomes explode or a LATERAL VIEW on Databricks.
  3. Re-map materializations. Check every incremental model’s strategy and unique_key against the Databricks options.
  4. Run parity tests. Compare row counts and key aggregates per model between the old and new warehouse.
  5. Run in parallel. Keep both pipelines live until the numbers match across several cycles.
  6. Cut over. Point dashboards to the new tables, then retire the old jobs.

Parity testing is where projects slip, so budget for it. Teams moving from older ETL tools face a larger rewrite. Kanerika compares those tools in dbt vs Informatica vs Azure Data Factory, and its guide on legacy systems to Databricks migration covers the wider move.

Migration ROI Calculator

Estimate Your Databricks Migration ROI

Size the effort and savings of moving transformations and pipelines to Databricks with Kanerika’s migration ROI calculator.

Calculate Migration ROI →

Common Mistakes That Break dbt on Databricks in Production

Production failures usually come from a handful of setup choices rather than from the SQL. Several were covered above, so treat this list as a quick reference. Each item starts from the symptom you will see, then names the cause and the fix.

  1. The job cannot find the project. The dbt project sits in DBFS, which jobs cannot run from, so move it to a Git folder.
  2. Runs fail with an authentication error after someone leaves. The job used a personal token, so switch to OAuth or a service principal.
  3. Run times and bills grow every month. Large tables rebuild in full each run, so switch big facts to incremental.
  4. Duplicate rows appear after the second run. A merge model has no unique_key and behaves like append, so declare the key.
  5. Values show up in the wrong column. Someone reordered columns in a replace_where model, so keep column order fixed or test it.
  6. Incremental models fail with a runtime error after a pip upgrade. Adapter 1.11 needs DBR 12.2 LTS or higher for incremental models, so pin 1.10.x until those clusters are upgraded.
  7. Production numbers change after a developer’s test run. Dev and prod share one catalog, so split catalogs by environment.
  8. Tags you deleted from YAML are still on the table. dbt cannot remove tags it applied, so remove them in Databricks or with a post-hook.

Watch on YouTube

Databricks Genie ZeroOps: AI That Fixes Broken Pipelines

See how Kanerika uses Databricks Genie to spot and repair broken data pipelines before failed jobs reach the people who rely on them.

When a pipeline does break, fast diagnosis matters as much as prevention. Run-level data observability shows which model failed and why. Tools such as Databricks Genie ZeroOps apply AI to the same job, so teams can find and fix broken pipelines sooner.

How Kanerika Delivers dbt on Databricks in Stages

Kanerika rolls out dbt on Databricks in stages, so each step proves value before the next one starts. As a Databricks partner, Kanerika runs this work through its Databricks consulting practice and its data engineering services.

  1. Assess. Map current transformations, their owners and the reports that depend on them.
  2. Pilot one domain. Rebuild one domain as dbt models with tests, then prove parity.
  3. Add CI/CD and governance. Set up pull-request checks, deployment automation, Unity Catalog grants and query tags.
  4. Scale out. Move further domains with the same templates.
  5. Operate. Monitor runs, review cost by team and tune incremental models.

The pilot step pays off because shared rules beat scattered ones. In a Kanerika healthcare analytics migration from Informatica, departments followed different transformation and coding rules, so Kanerika built one centralized rule framework on Azure Databricks. Reporting accuracy then rose 71%, data handling costs fell 38% and decisions came 64% faster.

That engagement did not use dbt, as the dbt best practices guide notes. The delivery lesson still carries over: once every rule lives in one reviewed place, changes are tested on each build and the numbers stop disagreeing.

The same principle, automated configuration in place of manual setup, drove a Kanerika project for a connected-vehicle telematics platform provider. Before the project, the client set up data storage systems by hand for each customer environment, which was slow and error-prone.

Kanerika automated the configuration and deployment of those systems. It also centralized data provisioning on the client’s analytics platform. As a result, the client saw a 52% decrease in manual configuration errors, an 18% increase in operational efficiency and 25% faster decision-making.

That project did not use dbt. Even so, it shows the result a dbt rollout aims for on Databricks: fewer hand-made changes, and data that teams can trust.

Case Study

52% Fewer Config Errors in Connected Vehicle Data

How Kanerika automated data storage configuration and deployment for a connected-vehicle telematics platform provider, cutting manual configuration errors by 52%.

Read the Case Study →

Wrapping Up

Databricks dbt works best as a clear split of jobs. dbt owns the logic, tests and reviews, while Databricks owns storage, governance and compute.

For most teams the practical answer is dbt Core on a Lakeflow Jobs dbt task. Choose the dbt platform when analysts write most models, and call dbt from an external orchestrator only when one already runs the estate.

Start with one domain, prove parity and cost, and grow from there. Kanerika’s guide to Databricks Asset Bundles is a good next read for packaging the jobs. So how do you run dbt on the lakehouse? Put the logic in a tested dbt project, then let Databricks run it on a governed SQL warehouse.

Frequently Asked Questions

What is dbt on Databricks, and can you run it there?

Yes. dbt on Databricks means writing transformations as dbt models that run on Databricks compute through the dbt-databricks adapter. dbt holds the SQL logic, tests and documentation, while Databricks stores the results as Delta tables in Unity Catalog and executes the SQL on a SQL warehouse. Teams can run it with dbt Core or the dbt platform.

What is the dbt-databricks adapter?

The dbt-databricks adapter is the open-source package that connects dbt to Databricks. Databricks recommends it over dbt-spark. Version 1.13.0 was released on October 29, 2026 and needs Python 3.10 or later. It exposes Databricks features such as liquid clustering, Unity Catalog tags, row filters and Delta incremental strategies as simple model configs.

Can dbt create streaming tables and materialized views on Databricks?

Yes. The dbt-databricks adapter supports materialized_view and streaming_table as materializations, so you can declare them in a model config like any other table. Databricks then manages their refresh. Row filters also work on both types, which helps when a fresh aggregate or streaming feed holds data that only some users may see.

Can I move an existing Snowflake dbt project to Databricks?

Yes. Models, tests and folder structure carry over, but you swap the adapter to dbt-databricks, add Databricks targets to profiles.yml and replace Snowflake-only functions or syntax. Re-check every incremental strategy, then compare row counts and key totals model by model. Run both platforms in parallel until the numbers match before you cut over.

How do I connect dbt to Databricks?

Install dbt-databricks in a Python virtual environment, then run dbt init and enter your workspace host and the HTTP path of a SQL warehouse. Choose OAuth for authentication, which Databricks recommends. dbt writes these details to profiles.yml. Run dbt debug to confirm the connection before building your first model against a development catalog.

Should I use dbt Core or the dbt platform on Databricks?

Use dbt Core when engineers are comfortable with Git and CI, because a Lakeflow Jobs dbt task runs it with no license fee. Choose the dbt platform, formerly dbt Cloud, when many analysts need a browser IDE, managed CI and hosted docs. Its paid plans charge per seat, so weigh headcount against the time you save.

What is the difference between dbt and Lakeflow pipelines?

Lakeflow pipelines, formerly Delta Live Tables and now built on Spark Declarative Pipelines, are strongest at streaming ingestion and change data capture. dbt is strongest at SQL business logic, tests and code review. Many teams use both, with Auto Loader and pipelines filling the bronze layer and dbt owning the silver and gold models that reports read.

Do I need dbt if I already have Databricks?

Not always. Databricks can run transformations in notebooks and pipelines on its own. dbt becomes worth adding when business logic is scattered across notebooks, metrics differ between dashboards, or column changes break reports without warning. It brings version control, tests and lineage to SQL transformations, which makes a growing estate easier to trust and maintain.

How do dbt models materialize on Databricks?

Each dbt model is built as a view, table, incremental table, materialized view or streaming table, and the results are stored as Delta objects in Unity Catalog. Incremental models then use a strategy such as merge, append, insert_overwrite, replace_where, delete+insert or microbatch. Incremental designs usually cut cost most, because each run processes only new data.

How do I schedule dbt jobs in Databricks?

Create a Lakeflow job with a dbt task that points at your project in a Databricks Git folder, because jobs cannot run dbt projects from DBFS. Add commands such as dbt deps, dbt seed and dbt run, choose a serverless or pro SQL warehouse, then set a schedule or trigger. Failed tests then stop the downstream steps.

How much does it cost to run dbt on Databricks?

There is no single price. Databricks compute is the main cost and depends on SQL warehouse size, auto-stop settings and how often models rebuild. dbt Core is free, while dbt platform plans listed in November 2026 run from a free Developer seat to a Starter plan at 100 dollars per user per month and custom Enterprise tiers.

Does dbt support Python models on Databricks?

Yes. dbt can run Python models on Databricks alongside SQL models, although the Databricks documentation still labels them beta. You choose where they run with the submission_method config, using an all-purpose cluster, a job cluster or a serverless cluster. Python models suit work that SQL handles poorly, such as some machine learning feature steps.

Authored by

Author Profile Picture

Gaurav Verma | Chief Marketing Officer

Gaurav Verma brings 25+ years of B2B SaaS marketing expertise, helping brands sharpen positioning, build demand, and drive measurable growth in competitive markets.

View Profile ⇒

Reviewed by

Reviewer Profile Picture

Shaurya Chauhan | Lead Software Engineer

Databricks Certified Data Engineer Professional and Lead Software Engineer at Kanerika, specializing in data engineering and analytics across Azure, Microsoft Fabric, Databricks, and Snowflake.

View Profile ⇒

Let’s Transform Your Business

get started today

Your Free Resource is Just a Click Away!