internalsGet Pro

Module 16 · Lesson 3 of 12Pro

Data contracts: agreements with data producers

Level
Intermediate
Topic
Data quality and observability
Reading time
17 min

When you finish this page you can

  1. Write a data contract for a source table that states its columns, their meaning, its owner and how it may change.
  2. Tell a breaking change from a safe one, including a new value in a closed list.
  3. Choose where a contract is checked, in the producer’s CI, at landing or in the warehouse, and say what each place can catch.
  4. Run a change to a contracted table so the data team is ready before it ships.

Builds on 3 lessons

Start with lesson 214 min
  1. Validation checks: schema, nulls, ranges and freshness14 min
  2. dbt contracts, versions and microbatch models18 min
  3. Change data capture: reading the database’s change log16 min

A new status stops the finance build

is an online store in India that takes about 500,000 orders a day. The orders service keeps them in its own PostgreSQL database. Meera, a data engineer, copies every change from that database into with . Each night, dbt builds the tables that Daniel’s finance report reads by 07:00 IST.

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