Skip to content

fix(hcl): allow materialized view patches to replace to_table - #239

Merged
orian merged 1 commit into
mainfrom
fix/mv-patch-to-table
Sep 8, 2026
Merged

orian merged 1 commit into
mainfrom
fix/mv-patch-to-table

Conversation

@orian

@orian orian commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Materialized views with different destinations across compositions previously required a full override, duplicating their query and columns. Allow patch_materialized_view to replace to_table while inheriting the other fields.

Update layer serialization and decompose to preserve and generate destination-only patches, and document the new field.

Validation: non-live tests across internal, cmd, config, and test pass, plus go vet ./.... Regression coverage includes inherited query/columns, patch ordering, empty destination validation, and decompose round trips.

Fixes #238

@orian
orian merged commit 9a52b78 into main Sep 8, 2026
16 checks passed
@orian
orian deleted the fix/mv-patch-to-table branch September 8, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

patch_materialized_view cannot change to_table, so a per-role destination needs a full override

1 participant