internalsGet Pro

Module 15 · Lesson 10 of 12Pro

Structuring a dbt project and running it in CI

Level
Intermediate
Topic
Transformations with dbt
Reading time
17 min

When you finish this page you can

  1. Lay out a dbt project in staging, intermediate and marts folders, with one sources file per source system and folder-level configs in dbt_project.yml.
  2. Give each environment its own schema (dev, one per pull request, prod) through targets in profiles.yml.
  3. Build only the changed models and their children in CI with state selection, --defer and dbt clone, against production’s manifest.
  4. Trace how a merged change reaches the nightly Airflow build through a Git bundle.

Builds on 4 lessons

Start with lesson 214 min
  1. dbt models, sources and references14 min
  2. dbt contracts, versions and microbatch models18 min
  3. Documentation and lineage in dbt14 min
  4. Airflow architecture: scheduler, workers and metadata17 min

At 15:10 IST on Friday 18 February 2028, Meera opens a that changes nine lines of one dbt model. Kartly’s job, the automated check on every pull request, then spends about 75 minutes building every model in the project, to check those nine lines.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan