We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 008635d commit b474ccaCopy full SHA for b474cca
sqlmesh/core/scheduler.py
@@ -374,9 +374,10 @@ def earliest_start_date(snapshots: t.Iterable[Snapshot]) -> datetime:
374
The earliest start date or yesterday if none is found.
375
"""
376
snapshots = list(snapshots)
377
+ earliest = to_datetime(yesterday().date())
378
if snapshots:
- return min(start_date(snapshot, snapshots) or yesterday() for snapshot in snapshots)
379
- return yesterday()
+ return min(start_date(snapshot, snapshots) or earliest for snapshot in snapshots)
380
+ return earliest
381
382
383
def _batched_intervals(params: SnapshotToBatches) -> SnapshotToBatches:
0 commit comments