Skip to content

Commit 3234a78

Browse files
committed
fix enterprise
1 parent a8742bd commit 3234a78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlmesh/core/state_sync/db/snapshot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ def _get_expired_snapshots(
230230
)
231231

232232
if result := fetchone(
233-
self.engine_adapter, exp.select("count(*)").from_(expired_query.subquery())
233+
self.engine_adapter,
234+
exp.select("count(*)").from_(expired_query.subquery().as_("expired_snapshots")),
234235
):
235236
expired_record_count = result[0]
236237

0 commit comments

Comments
 (0)