Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update model-contracts.md for supported models #4336

Merged
merged 12 commits into from
Jan 8, 2024
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
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved
- `table`
- `view`. Views offer limited support for column names and data types, but not `constraints`.
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved
- `incremental` (with `on_schema_change: append_new_columns` or `on_schema_change: fail`).
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved
- Certain data platforms, but the supported and enforced `constraints` vary by platform.

Model contracts are **not** supported for:
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved
- Python models.
- `ephemeral`-materialized SQL models.
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved


## How to define a contract

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