Skip to content

Commit

Permalink
Update model-contracts.md for supported models
Browse files Browse the repository at this point in the history
Update to show that incremental models with on_schema_change: fail are actually supported.

Reformat to make what is and isn't supported clearer.
  • Loading branch information
nathangriffiths-cdx authored Oct 26, 2023
1 parent 7484d0b commit cc0c83b
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 cc0c83b

Please sign in to comment.