Skip to content

Commit 87ea03c

Browse files
authored
Fix: Always recreate regular views on re-execution (#1693)
1 parent 67e2c8b commit 87ea03c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlmesh/core/snapshot/evaluator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,7 @@ def insert(
10701070
deployability_index = deployability_index or DeployabilityIndex.all_deployable()
10711071
if (
10721072
isinstance(query_or_df, exp.Expression)
1073+
and snapshot.is_materialized_view
10731074
and deployability_index.is_deployable(snapshot)
10741075
and snapshot.intervals # Re-create the view during the first evaluation.
10751076
and model.render_query(

0 commit comments

Comments
 (0)