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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Fabric Update Carousel

Fabric Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors