Skip to content

Commit

Permalink
This branch was auto-updated!
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 8, 2024
2 parents 33ba942 + 515840b commit 1186555
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions website/docs/docs/collaborate/govern/model-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,18 @@ While this is ideal for quick and iterative development, for some models, consta
## Where are contracts supported?

At present, model contracts are supported for:
- SQL models. Contracts are not yet supported for Python models.
- Models materialized as `table`, `view`, and `incremental` (with `on_schema_change: append_new_columns`). Views offer limited support for column names and data types, but not `constraints`. Contracts are not supported for `ephemeral`-materialized models.
- SQL models.
- Models materialized as one of the following:
- `table`
- `view` — Views offer limited support for column names and data types, but not `constraints`.
- `incremental` — with `on_schema_change: append_new_columns` or `on_schema_change: fail`.
- Certain data platforms, but the supported and enforced `constraints` vary by platform.

Model contracts are _not_ supported for:
- Python models.
- `ephemeral`-materialized SQL models.


## How to define a contract

Let's say you have a model with a query like:
Expand Down

0 comments on commit 1186555

Please sign in to comment.