File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -674,9 +674,11 @@ def _categorize_snapshot(
674674 if mode == AutoCategorizationMode .FULL :
675675 snapshot .categorize_as (SnapshotChangeCategory .BREAKING , forward_only )
676676 elif self ._context_diff .indirectly_modified (snapshot .name ):
677- if snapshot .is_materialized_view :
677+ if snapshot .is_materialized_view and not forward_only :
678678 # We categorize changes as breaking to allow for instantaneous switches in a virtual layer.
679679 # Otherwise, there might be a potentially long downtime during MVs recreation.
680+ # In the case of forward-only changes this optimization is not applicable because we continue using the
681+ # same (existing) table version.
680682 snapshot .categorize_as (SnapshotChangeCategory .INDIRECT_BREAKING , forward_only )
681683 return
682684
You can’t perform that action at this time.
0 commit comments