You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Redshift ALTER TABLE ALTER COLUMN cannot run inside a transaction block #5572
ALTER TABLE ALTER COLUMN cannot run inside a transaction block
Note that sqlmesh only logs that the transaction is aborted, and not which tables or columns are causing the issue.
sqlmesh.utils.errors.PlanError: {'S': 'ERROR', 'C': '25P02', 'M': 'current transaction is aborted, commands ignored until end of transaction block', 'F': '/opt/brazil-pkg-cache/packages/RedshiftPADB/RedshiftPADB-1.0.48169.0/AL2_aarch64/generic-flavor/src/src/pg/src/backend/tcop/postgres.c', 'L': '4515', 'R': 'exec_parse_message'}
Expected behaviour: These commands should be executed outside of a transaction. Or until this is possible, the required manual changes should be logged in the sqlmesh plan before failing to allow users to make the changes in one go before retrying
Activity
fresioAS commentedon Nov 3, 2025
I have a similar issue for Fabric as described here - #5399
Also a pending PR (or waiting on someone to make it smarter/more generic here): #5511