Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
  • Loading branch information
matthewshaver authored Feb 23, 2023
commit 81b6330edaadb4924d05e3a377071f076ed39623
2 changes: 1 addition & 1 deletion website/docs/docs/collaborate/publish/model-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ models:
</File>

When building a model with a defined contract, dbt will do two things differently:
1. dbt will run a prerequisite check to ensure that the model's query will return a set of columns with names and data types matching the ones you have defined.
1. dbt will run a preliminary verification check to ensure that the model's query will return a set of columns with names and data types matching the ones you have defined.
2. dbt will pass the column names, types, `not_null`, and other constraints into the DDL statements it submits to the data platform, which will be enforced while building the table.

## FAQs
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/resource-configs/contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This functionality is new in v1.5. These docs exist to provide a high-level over

In particular:
- The current name of the `contract` config is `constraints_enabled`.
- The prerequisite check includes column `name` only and is order-sensitive. The goal is to add `data_type` and make it insensitive to column order.
- The verification check includes column `name` only and is order-sensitive. The goal is to add `data_type` and make it insensitive to column order.
:::

# Definition
Expand Down