sqlmesh
sqlmesh copied to clipboard
fix(fabric): Alter table workaround
Fix for issue described in #5399 - ALTER TABLE ALTER COLUMN is not supported for Fabric Warehouse
- Add new empty column
- Copy data from old column to new column
- Drop old column
- Rename new column to old column name
@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)')
@georgesittas, can we get traction on this? It's causing some issues ☺️
Thanks @fresioAS !