Skip to content

Commit 91b7c7b

Browse files
authored
pass modified snapshots
1 parent 4ff5506 commit 91b7c7b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sqlmesh/core/plan/evaluator.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""
1616

1717
import abc
18+
import itertools
1819
import logging
1920
import typing as t
2021
from sqlmesh.core import analytics
@@ -379,6 +380,12 @@ def visit_migrate_schemas_stage(
379380
allow_destructive_snapshots=plan.allow_destructive_models,
380381
allow_additive_snapshots=plan.allow_additive_models,
381382
deployability_index=stage.deployability_index,
383+
directly_or_indirectly_modified_snapshots_ids=set(
384+
itertools.chain(
385+
*plan.indirectly_modified_snapshots.values(),
386+
plan.directly_modified_snapshots,
387+
)
388+
),
382389
)
383390
except NodeExecutionFailedError as ex:
384391
raise PlanError(str(ex.__cause__) if ex.__cause__ else str(ex))

0 commit comments

Comments
 (0)