Skip to content

Commit e6836f7

Browse files
committed
Added whether or not the model is representative but not deployable to the missing interval check.
Signed-off-by: davem-bis <68955845+davem-bis@users.noreply.github.com>
1 parent a1be70b commit e6836f7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎sqlmesh/core/scheduler.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,14 @@ def merged_missing_intervals(
180180
ignore_cron=ignore_cron,
181181
end_bounded=end_bounded,
182182
)
183+
184+
deployability_index = deployability_index or DeployabilityIndex.all_deployable()
185+
183186
# Filtering snapshots after computing missing intervals because we need all snapshots in order
184187
# to correctly infer start dates.
185188
if selected_snapshots is not None:
186189
snapshots_to_intervals = {
187-
s: i for s, i in snapshots_to_intervals.items() if s.name in selected_snapshots
190+
s: i for s, i in snapshots_to_intervals.items() if s.name in selected_snapshots and not (deployability_index.is_representative(s) and not deployability_index.is_deployable(s))
188191
}
189192
return snapshots_to_intervals
190193

0 commit comments

Comments
 (0)