We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d10d01 commit 55918aeCopy full SHA for 55918ae
sqlmesh/core/plan/builder.py
@@ -674,6 +674,12 @@ def _categorize_snapshot(
674
if mode == AutoCategorizationMode.FULL:
675
snapshot.categorize_as(SnapshotChangeCategory.BREAKING, forward_only)
676
elif self._context_diff.indirectly_modified(snapshot.name):
677
+ if snapshot.is_materialized_view:
678
+ # We categorize changes as breaking to allow for instantaneous switches in a virtual layer.
679
+ # Otherwise, there might be a potentially long downtime during MVs recreation.
680
+ snapshot.categorize_as(SnapshotChangeCategory.BREAKING, forward_only)
681
+ return
682
+
683
all_upstream_forward_only = set()
684
all_upstream_categories = set()
685
direct_parent_categories = set()
0 commit comments