Skip to content

Commit 349f152

Browse files
committed
fix on_destructive_changes check
1 parent 44fb06d commit 349f152

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sqlmesh/core/plan/builder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,9 @@ def _adjust_new_snapshot_intervals(self) -> None:
527527

528528
def _check_destructive_changes(self, directly_modified: t.Set[SnapshotId]) -> None:
529529
for s_id in sorted(directly_modified):
530+
if s_id.name not in self._context_diff.modified_snapshots:
531+
continue
532+
530533
snapshot = self._context_diff.snapshots[s_id]
531534
# should we raise/warn if this snapshot has/inherits a destructive change?
532535
should_raise_or_warn = (

0 commit comments

Comments
 (0)