Skip to content

fix(fabric): Alter table workaround#5511

Merged
erindru merged 13 commits intoSQLMesh:mainfrom
fresioAS:fabric_alter_table_no_op
Dec 2, 2025
Merged

fix(fabric): Alter table workaround#5511
erindru merged 13 commits intoSQLMesh:mainfrom
fresioAS:fabric_alter_table_no_op

Conversation

@fresioAS
Copy link
Contributor

@fresioAS fresioAS commented Oct 8, 2025

Fix for issue described in #5399 - ALTER TABLE ALTER COLUMN is not supported for Fabric Warehouse

  1. Add new empty column
  2. Copy data from old column to new column
  3. Drop old column
  4. Rename new column to old column name

@fresioAS fresioAS changed the title fix(fabric): Alter table no op fix(fabric): Alter table workaround Oct 23, 2025
@fresioAS fresioAS marked this pull request as ready for review October 23, 2025 18:39
@fresioAS
Copy link
Contributor Author

@treysp @izeigerman @erindru
Any comments to this PR? Not ideal since it changes the order of the columns, but 100% better than crashing out with
Error:('42000', '[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]The specified ALTER TABLE statement is not supported in this edition of SQL Server. (24585) (SQLExecDirectW)')

@mattiasthalen
Copy link
Contributor

@georgesittas, can we get traction on this? It's causing some issues ☺️

@erindru
Copy link
Collaborator

erindru commented Dec 2, 2025

Thanks @fresioAS !

@erindru erindru merged commit 15ffcf0 into SQLMesh:main Dec 2, 2025
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants