Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions sqlmesh/core/state_sync/engine_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,8 @@ def _migrate_snapshot_rows(self) -> t.Dict[SnapshotId, SnapshotTableInfo]:
raw_snapshots = {
SnapshotId(name=name, identifier=identifier): raw_snapshot
for name, identifier, raw_snapshot in self.engine_adapter.fetchall(
exp.select("name", "identifier", "snapshot").from_(self.snapshots_table).lock()
exp.select("name", "identifier", "snapshot").from_(self.snapshots_table).lock(),
quote_identifiers=True,
)
}
if not raw_snapshots:
Expand Down Expand Up @@ -1129,7 +1130,10 @@ def _migrate_seed_rows(self, snapshot_mapping: t.Dict[SnapshotId, SnapshotTableI
seeds = {
SnapshotId(name=name, identifier=identifier): content
for name, identifier, content in self.engine_adapter.fetchall(
exp.select("name", "identifier", "content").from_(self.seeds_table).where(where)
exp.select("name", "identifier", "content")
.from_(self.seeds_table)
.where(where),
quote_identifiers=True,
)
}
if not seeds:
Expand Down