From 946855028eacd5ca27017e16f48e8292c2df7d3c Mon Sep 17 00:00:00 2001 From: Iaroslav Zeigerman Date: Thu, 30 Oct 2025 20:44:35 -0700 Subject: [PATCH] Fix: Require the cache for upstream deps in the scheduler --- sqlmesh/core/scheduler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sqlmesh/core/scheduler.py b/sqlmesh/core/scheduler.py index ecad70a8e3..5eb0ff40ff 100644 --- a/sqlmesh/core/scheduler.py +++ b/sqlmesh/core/scheduler.py @@ -730,9 +730,8 @@ def _find_upstream_dependencies( parent_sid: SnapshotId, intervals_per_snapshot: t.Dict[str, Intervals], snapshots_to_create: t.Set[SnapshotId], - cache: t.Optional[t.Dict[SnapshotId, t.Set[SchedulingUnit]]] = None, + cache: t.Dict[SnapshotId, t.Set[SchedulingUnit]], ) -> t.Set[SchedulingUnit]: - cache = cache or {} if parent_sid not in self.snapshots: return set() if parent_sid in cache: