Commit a1daff7
authored
fix: warn on contract.enforced=true for materialized_view (#1421)
Resolves #1279
Upstream dbt does not support contracts on materialized views
([docs](https://docs.getdbt.com/docs/mesh/govern/model-contracts)).
dbt-databricks was silently accepting `contract.enforced: true`, hiding
yml/SQL drift. This PR emits a warning pointing at the dbt docs.
Strictly additive; no existing build outcome changes.
### Checklist
- [x] I have run this code in development and it appears to resolve the
stated issue
- [x] This PR includes tests, or tests are not required/relevant for
this PR
- [x] I have updated the `CHANGELOG.md`1 parent 2636f11 commit a1daff7
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
0 commit comments