Commit ca54b15
fix: Use DROP + CREATE for MV partition_by changes (#1327)
CREATE OR REPLACE MATERIALIZED VIEW cannot change partition_by, so use
DROP + CREATE when partition_by is changing. This restores the previous
behavior for partition_by changes while keeping CREATE OR REPLACE for
other full refresh scenarios.
### 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
- [ ] I have updated the `CHANGELOG.md` and added information about my
change to the "dbt-databricks next" section.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 25caa2a commit ca54b15
1 file changed
Lines changed: 7 additions & 1 deletion
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
0 commit comments