Skip to content

Conversation

@izeigerman
Copy link
Member

If I have model A and a downstream view model B, and I make a Non-Breaking change to A, then B is categorized as Indirect Non-Breaking. In this case, A gets a new physical table assigned to it, while B continues using the previous physical table by design.

This is generally an acceptable strategy when the physical tables represent materialized tables, but it presents a problem if B's physical table represents a view - in that case, the model query itself is part of the physical table definition and needs to be updated.

If not updated, the view will continue referencing the old physical table of A. This means that when querying B, the user will either get outdated data or encounter a query failure if the old snapshot is deleted by the janitor.

This update ensures that views are always recreated for Indirect Non-Breaking snapshots when they are deployed to production.

@izeigerman izeigerman requested a review from a team May 14, 2025 22:36
@izeigerman izeigerman merged commit 1837bb6 into main May 14, 2025
20 checks passed
@izeigerman izeigerman deleted the fix-update-indirect-non-breaking-views branch May 14, 2025 23:31
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.

3 participants