We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff5506 commit 91b7c7bCopy full SHA for 91b7c7b
sqlmesh/core/plan/evaluator.py
@@ -15,6 +15,7 @@
15
"""
16
17
import abc
18
+import itertools
19
import logging
20
import typing as t
21
from sqlmesh.core import analytics
@@ -379,6 +380,12 @@ def visit_migrate_schemas_stage(
379
380
allow_destructive_snapshots=plan.allow_destructive_models,
381
allow_additive_snapshots=plan.allow_additive_models,
382
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
+ ),
389
)
390
except NodeExecutionFailedError as ex:
391
raise PlanError(str(ex.__cause__) if ex.__cause__ else str(ex))
0 commit comments