Skip to content

Commit cdb2ebd

Browse files
committed
fix: preserve transactional DDL rollback ownership
1 parent c28fd2a commit cdb2ebd

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎src/openstatspec/sql/inplace_transform.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -881,12 +881,13 @@ def _run_in_place_submission(
881881
)
882882
return result
883883
except Exception:
884-
# PostgreSQL rolls back the DDL and catalog writes atomically. Once
885-
# that rollback releases the dataset lock, a separate compensation
886-
# transaction could delete artifacts created by a waiting apply.
884+
# Transactional-DDL profiles roll back schema and catalog writes
885+
# atomically. Once that rollback releases the dataset lock, a
886+
# separate compensation transaction could delete artifacts created
887+
# by a waiting apply.
887888
if (
888889
journal.get("added_columns")
889-
and profile.name != "postgresql"
890+
and profile.name not in {"sqlite", "postgresql"}
890891
):
891892
try:
892893
_compensate_failed_apply(

0 commit comments

Comments
 (0)