Learn to build tested, documented SQL transformations with dbt: staging to marts, materializations, incremental models, tests, and lineage.
An analyst at acme-shop opens a folder called sql_scripts_final_v3.
Installing dbt and connecting to Postgres Install dbt Core with the adapter for your warehouse, in the virtual environment you use for the lab.
A widely used dbt structure has three layers: staging, intermediate, and marts.
A materialization is how dbt physically builds a model in the warehouse. Same SELECT, different storage.
A model that runs without error is not the same as a model that is correct.
On a Monday morning a teammate says the revenue mart is higher than finance's number. dbt run finished with no errors.
An analyst at acme-shop opens a folder called sql_scripts_final_v3.
Installing dbt and connecting to Postgres Install dbt Core with the adapter for your warehouse, in the virtual...
A widely used dbt structure has three layers: staging, intermediate, and marts.
A materialization is how dbt physically builds a model in the warehouse. Same SELECT, different storage.
A model that runs without error is not the same as a model that is correct.
On a Monday morning a teammate says the revenue mart is higher than finance's number. dbt run finished with no errors.
Describing models and columns The exact wording of this output differs between versions; what matters is the local...
Installing dbt_utils A package is a shared dbt project you install into yours.
Everything so far ran on your laptop. The real value appears when dbt sits inside a team's pull request process.
You will build 7 models and 14 tests on the acme-shop data.
What you built You turned raw acme-shop tables into a tested, documented dbt project: four staging models, one...
Quick reference Common mistakes Using the table materialization on a very large model rebuilds everything on every run...
Roles that use the skills in this module.
Data Engineer
Platform Engineer
Not a software engineer sheet. Every problem comes from real DevOps, SRE, Platform and Cloud interviews, from your first script to a system you build yourself.
Open the Coding SheetNo. dbt handles only the transform step. Tools like Airflow, Fivetran, or Debezium land raw data in the warehouse first, and dbt turns those raw tables into clean, tested models.
dbt run builds models, dbt test runs tests, and dbt build does both in dependency order. build skips anything downstream of a failed model or test, so it is the safest command for CI.
Use one when rebuilding the whole table every run is too slow or costly. Start with a view or table, and move to incremental only when the data volume makes full rebuilds a real problem.
No. dbt Core is free and open source and runs from the command line. dbt Cloud adds hosted scheduling, CI, and docs, which are useful but not required to learn or use dbt.