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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
smpa01
Super User
Super User

How to change exisitng schema of a kql db table

I have create a KQL db table with wrong schema for couple of columns. How can I update only those columns with correct schema.

 

I tried this on one column and i am getting an error

 

 

//query1 - does not work
.alter-merge table t1 ([PartitionId]:long)

//query2 - does not work
.alter-merge table t1 ([PartitionId]:long)

Both gives the following error
Admin command cannot be executed due to an invalid argument; argument: 'attributes', reason: 'Alter table does not support column data type change for existing columns (PartitionId). Current type=StringBuffer, requested type=I64'.

 

Thank you in advance

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @smpa01 ,

 

You can use the .alter table update policy command to create update policies on tables in Real-Time Intelligence. When you trigger an update policy with a command that adds data to the source table, the data is also appended to the target table. The target table can have a different architecture than the source table.

 

For more details, please refer: Create a table update policy in Real-Time Intelligence - Microsoft Fabric | Microsoft Learn

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @smpa01 ,

 

You can use the .alter table update policy command to create update policies on tables in Real-Time Intelligence. When you trigger an update policy with a command that adds data to the source table, the data is also appended to the target table. The target table can have a different architecture than the source table.

 

For more details, please refer: Create a table update policy in Real-Time Intelligence - Microsoft Fabric | Microsoft Learn

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors