1/5
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is it?
Defines the expected inputs, outputs, and behaviors for each data model. A model contract is a model config property that enforces columns, data types, and constraints in the associated model. By assigning and enabling a model contract, dbt checks that the model being built conforms to the outlined specification. If the column list or data types don't match the contract, the build fails, highlighting the offending discrepancy.
Simple Explainer
Someone is reading from the tables you built with dbt. Can they expect the table to look the same every day? Or could someone accidentally make a change that breaks your dashboard?
What Functional Requirement Does it Satisfy?
Data Validation & Consistency
How it Reduces Cost
Mitigates errors and rework, leading to cost savings.
How it Helps Data Teams Ship Faster
Enforces a clear contract, ensuring that models integrate seamlessly.
How it Helps Orgs Build Trust in Data and Teams
By setting clear expectations, it reinforces data integrity and stakeholder confidence.