Skip to content
Gold 5 min read · Governance

Contracts, versions and access

Guarantee a model's columns and types, version breaking changes, and control who may ref a model.

Pipelines in production · dbt · Gold · CI and governance, lesson 2 of 2

Read first: Data tests · Slim CI, state and defer (skip if you know them)

In plain words first

A published timetable is a promise: if the 8:15 train is moved, passengers need notice and the old time keeps running for a while. A contract is that promise for a modelmodel: A SELECT statement in a .sql file. dbt runs it and saves the result in the warehouse as a table or view named after the file. Learn more →'s columns, and a version lets the old and new timetable run side by side.

Unlock the full lesson

You have read the free part. The rest of this advanced lesson:

  • Models other teams depend on
  • Contracts
  • Constraints are not all enforced
  • Versions
  • Groups and access
  • Common mistakes
  • Key takeaways
  • Interview prep with 3 follow-up questions
  • Check yourself: 3 questions

Unlock it with the Complete pass (every advanced problem and lesson) or on its own.

Keep going

Last lesson of dbt
Back to the journey →

Related lessons

Previous: Slim CI, state and defer

Primary sources: Model contracts · Model versions · Model access