Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ebjim
Helper IV
Helper IV

Changing lakehouse table column names

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?

1 ACCEPTED 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:

vnikhilanmsft_0-1712844940803.png

 

So if you want to rename a column today, you need to add a column.

 

vnikhilanmsft_1-1712844973215.png


But there is no way to delete it, unless they turn on column mapping or rewrite the table back.

vnikhilanmsft_2-1712845060614.png

 

vnikhilanmsft_3-1712845079643.png


With column mapping, the spark table is updated, but the SQL endpoint table is not updated.

vnikhilanmsft_4-1712845107953.png

 

vnikhilanmsft_5-1712845156607.png


Hope this helps. Please let me know if you have any further queries.

View solution in original post

3 REPLIES 3
frithjof_v
Super User
Super User

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...

frithjof_v
Super User
Super User

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:

vnikhilanmsft_0-1712844940803.png

 

So if you want to rename a column today, you need to add a column.

 

vnikhilanmsft_1-1712844973215.png


But there is no way to delete it, unless they turn on column mapping or rewrite the table back.

vnikhilanmsft_2-1712845060614.png

 

vnikhilanmsft_3-1712845079643.png


With column mapping, the spark table is updated, but the SQL endpoint table is not updated.

vnikhilanmsft_4-1712845107953.png

 

vnikhilanmsft_5-1712845156607.png


Hope this helps. Please let me know if you have any further queries.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!

JanFabricDF_carousel

Fabric Monthly Update - January 2025

Take your data replication to the next level with Fabric's latest updates!