The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
While I have seen articles here and there about using notebooks to alter the name of a lakehouse table column, the new names don't sync up with the SQL endpoint. Am I correct to say that Microsoft does not officially allow for lakehouse table columns to be individually renamed?
Solved! Go to Solution.
Hi @ebjim
Thanks for using Fabric Community.
Rename does/should work without column mapping enabled on spark. So we need to know the version of spark used and the version of delta + if column mapping was enabled on the table. You can check the column mapping details as below:
So if you want to rename a column today, you need to add a column.
But there is no way to delete it, unless they turn on column mapping or rewrite the table back.
With column mapping, the spark table is updated, but the SQL endpoint table is not updated.
Hope this helps. Please let me know if you have any further queries.
Maybe this is a solution for renaming columns, dropping columns and changing column type in Lakehouse tables:
https://community.fabric.microsoft.com/t5/General-Discussion/Dropping-and-recreating-lakehouse-table...
This is my experience also
Hi @ebjim
Thanks for using Fabric Community.
Rename does/should work without column mapping enabled on spark. So we need to know the version of spark used and the version of delta + if column mapping was enabled on the table. You can check the column mapping details as below:
So if you want to rename a column today, you need to add a column.
But there is no way to delete it, unless they turn on column mapping or rewrite the table back.
With column mapping, the spark table is updated, but the SQL endpoint table is not updated.
Hope this helps. Please let me know if you have any further queries.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
6 | |
5 | |
3 | |
2 | |
2 |