Skip to content

Commit 27ac0ae

Browse files
committed
Fix plan explainer for managed models
1 parent 1e2c322 commit 27ac0ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sqlmesh/core/plan/explainer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def visit_physical_layer_update_stage(self, stage: stages.PhysicalLayerUpdateSta
117117

118118
if snapshot.is_view:
119119
create_tree = Tree("Create view if it doesn't exist")
120-
elif snapshot.is_forward_only and snapshot.previous_versions:
120+
elif (
121+
snapshot.is_forward_only and snapshot.previous_versions and not snapshot.is_managed
122+
):
121123
prod_table = snapshot.table_name(True)
122124
create_tree = Tree(
123125
f"Clone {prod_table} into {table_name} and then update its schema if it doesn't exist"

0 commit comments

Comments
 (0)