We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42edd22 commit f9ad555Copy full SHA for f9ad555
sqlmesh/core/state_sync/engine_adapter.py
@@ -933,7 +933,12 @@ def map_data_versions(
933
for name, versions in from_snapshot.indirect_versions.items()
934
}
935
936
- self._push_snapshots(new_snapshots.values(), overwrite=True)
+ existing_new_snapshots = self.snapshots_exist(new_snapshots)
937
+ new_snapshots_to_push = [
938
+ s for s in new_snapshots.values() if s.snapshot_id not in existing_new_snapshots
939
+ ]
940
+ if new_snapshots_to_push:
941
+ self._push_snapshots(new_snapshots_to_push)
942
943
updated_prod_environment: t.Optional[Environment] = None
944
updated_environments = []
0 commit comments