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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
Murtaza_Ghafoor
Advocate I
Advocate I

How to Modify Column Type in Existing table in Lakehouse

 

Modify Command is not available, so how can we modify column type in existing table?

1 ACCEPTED SOLUTION
Murtaza_Ghafoor
Advocate I
Advocate I

My case is different, I am copying multiple  tables in single  copy activity  and  I found  a solution  as well.

 

 

Alter Table_Name alter Column_Name column type constrain.

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Murtaza_Ghafoor ,

 

Thanks for the reply from lbendlin .

 

It looks like you have found a solution. Could you please mark this helpful post as “Answered”?

 

This will help others in the community to easily find a solution if they are experiencing the same problem as you.

 

I offer another method for your consideration. You can change the type of columns in Data Wrangler.

 

First, run this code in notebook to load the data using the Spark API.

df = spark.read.format(“csv”).option(“header”, “true”).load(“Files/orders/2019.csv”)

# df now is a Spark DataFrame containing CSV data from “Files/orders/2019.csv”.

display(df)

 

After running it select Data Wrangler.

vhuijieymsft_0-1726215003195.png

 

Select schema>>Change Column Type under Data Wrangler.

vhuijieymsft_1-1726215003204.png

 

Select the columns you want to change and the type you want to change, and finally click Apply.

vhuijieymsft_2-1726215017515.png

vhuijieymsft_3-1726215017519.png

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Murtaza_Ghafoor
Advocate I
Advocate I

My case is different, I am copying multiple  tables in single  copy activity  and  I found  a solution  as well.

 

 

Alter Table_Name alter Column_Name column type constrain.

 

 

Hi @Murtaza_Ghafoor  how have you altered the column data type?  If you do this, you will likely break the metadata sync to the Lakehouse SQL Endpoint as altering columns and changing data types is not supported for scenarios where the lakehouse delta tables need to syncronise with the sql endpoint.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.