internalsGet Pro

Module 15 · Lesson 12 of 12Pro

Design: a dbt project for sales reporting

Level
Intermediate
Topic
Transformations with dbt
Reading time
28 min

When you finish this page you can

  1. Lay out a dbt project in layers, from sources to finance models, and give each layer a materialization, tests and an owner.
  2. Split a nightly dbt build so a failure outside the finance path can’t hold back the finance report.
  3. Decide which tables to rebuild in full, which to build incrementally and which to leave as views, using the build budget.
  4. Choose where contracts, test severities and exposures protect the tables a report reads.
  1. Design: orchestrating a daily reporting pipeline28 min
  2. Materializations: views, tables and incremental models18 min
  3. Testing data with dbt18 min
  4. dbt contracts, versions and microbatch models18 min
  5. Documentation and lineage in dbt14 min

Twenty minutes after the numbers are ready

On a normal night, everything in Daniel’s 07:00 finance report is built and tested by about 02:45. The nightly dbt build keeps running until 03:05. Those last 20 minutes rebuild two that no finance number reads.

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