From 36d95664196a98e26f9f3e8ae9c18a9be7db16d0 Mon Sep 17 00:00:00 2001 From: eakmanrq <6326532+eakmanrq@users.noreply.github.com> Date: Thu, 25 Sep 2025 14:21:59 -0700 Subject: [PATCH] fix: include forward_only parsed snapshot --- sqlmesh/core/state_sync/db/migrator.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sqlmesh/core/state_sync/db/migrator.py b/sqlmesh/core/state_sync/db/migrator.py index b803a5cc40..3e3f978b96 100644 --- a/sqlmesh/core/state_sync/db/migrator.py +++ b/sqlmesh/core/state_sync/db/migrator.py @@ -229,6 +229,7 @@ def _migrate_snapshot_rows( "updated_ts": updated_ts, "unpaused_ts": unpaused_ts, "unrestorable": unrestorable, + "forward_only": forward_only, } for where in ( snapshot_id_filter( @@ -237,10 +238,16 @@ def _migrate_snapshot_rows( if snapshots is not None else [None] ) - for name, identifier, raw_snapshot, updated_ts, unpaused_ts, unrestorable in fetchall( + for name, identifier, raw_snapshot, updated_ts, unpaused_ts, unrestorable, forward_only in fetchall( self.engine_adapter, exp.select( - "name", "identifier", "snapshot", "updated_ts", "unpaused_ts", "unrestorable" + "name", + "identifier", + "snapshot", + "updated_ts", + "unpaused_ts", + "unrestorable", + "forward_only", ) .from_(self.snapshot_state.snapshots_table) .where(where)