Skip to content

Commit acb18ad

Browse files
authored
Fix: only include model snapshots in the version creation progress (#1538)
* Fix: only include model snapshots in the version creation progress * Use new model count as a condition instead of plan.new_snapshots * Cleanup
1 parent fcb71ac commit acb18ad

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sqlmesh/core/plan/evaluator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,10 @@ def _push(self, plan: Plan) -> None:
134134
plan: The plan to source snapshots from.
135135
"""
136136
snapshot_id_to_snapshot = {s.snapshot_id: s for s in plan.snapshots}
137+
new_model_snapshot_count = len([s for s in plan.new_snapshots if s.is_model])
137138

138-
if plan.new_snapshots:
139-
self.console.start_creation_progress(len(plan.new_snapshots))
139+
if new_model_snapshot_count > 0:
140+
self.console.start_creation_progress(new_model_snapshot_count)
140141

141142
def on_complete(snapshot: SnapshotInfoLike) -> None:
142143
self.console.update_creation_progress(1)

0 commit comments

Comments
 (0)