internalsGet Pro

Module 15 · Lesson 5 of 12Pro

dbt contracts, versions and microbatch models

Level
Advanced
Topic
Transformations with dbt
Reading time
18 min

When you finish this page you can

  1. Put an enforced contract on a dbt model and say which of its constraints Snowflake actually enforces.
  2. Ship a breaking change to a shared model as a new version, with a deprecation date and a path for every reader.
  3. Choose between a classic incremental model and a microbatch model, and rebuild chosen days of a microbatch model.

Builds on 3 lessons

Start with lesson 318 min
  1. Materializations: views, tables and incremental models18 min
  2. Backfills: rerunning history safely17 min
  3. Modeling events and clickstreams17 min

A green build that broke two teams

is an online store in India, taking about 500,000 orders a day and about 1 billion since launch. Meera, a data engineer, runs its project, which builds KARTLY.ANALYTICS in : fct_order_lines, fct_orders, dim_customer, dim_product and dim_date. Airflow’s kartly_nightly DAG runs the build at 01:00 IST each night.

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