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
FiFiF
New Member

How to add a column to an eventhouse?

I am fairly new to Fabric and have a python script that sends data to an Eventstream, which in turn sends it into an Eventhouse.

Now I have changed the python script and am sending one column more than the Eventhouse stores, so I want to extend it by 1 column.

I have found this https://learn.microsoft.com/en-us/fabric/real-time-intelligence/table-update-policy but I do not know, how to use this code.

Can you tell me, how I would add a column named abc containing strings?

1 ACCEPTED SOLUTION
datacoffee
Most Valuable Professional
Most Valuable Professional

Hi
You can alter a table directly and add a new column
The syntax is something like this

.alter table MyTable (ColumnX:string, ColumnY:int)

You can read the entire doc right here:
.alter table command - Kusto | Microsoft Learn

A different approach is to save the entire payload in one JSON column and then expand the coluimn in query time. The column datatype should then be dynamic datatype. You can easy unfold the JSON object using the "bag_unpack" command: 


https://learn.microsoft.com/en-us/kusto/query/bag-unpack-plugin?view=microsoft-fabric

View solution in original post

1 REPLY 1
datacoffee
Most Valuable Professional
Most Valuable Professional

Hi
You can alter a table directly and add a new column
The syntax is something like this

.alter table MyTable (ColumnX:string, ColumnY:int)

You can read the entire doc right here:
.alter table command - Kusto | Microsoft Learn

A different approach is to save the entire payload in one JSON column and then expand the coluimn in query time. The column datatype should then be dynamic datatype. You can easy unfold the JSON object using the "bag_unpack" command: 


https://learn.microsoft.com/en-us/kusto/query/bag-unpack-plugin?view=microsoft-fabric

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!

Top Solution Authors