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
teeceegee
Regular Visitor

Appending data to a partitioned table in the Lakehouse

I have been able to create a partitioned table in a Lakehouse usign a pipeline where the data is read from a CSV file and partitioned on the YEAR_MONTH field (all data in the file is of the same YEAR_MONTH), and then sub-partitioned on another two fields in the file. However, as new data is realeased on a monthly basis I want to be able to append it to this table. At the moment this is not possible using the same method as the original table was created. It seems you can paritition a table when using OVERWRITE but not when using APPEND (even though adding the new data will create an additional top level parition and not add data to any of the exisiting partitions).

 

I am missing something obvious? Is this a preview restriction? Are there other ways of achieving the same thing?

1 ACCEPTED SOLUTION
mrojze
Helper II
Helper II

I made it work. Is there a better solution to this, very likely.

First, I created a regular table using the overwrite option in ADF

mrojze_1-1692890534826.png

 

2nd, I created an empty delta-partitioned table in a notebook

mrojze_2-1692890557320.png

 

3rd I inserted into the partitioned table from the staging table created in the first step.

mrojze_3-1692890600313.png

 

 

 

View solution in original post

8 REPLIES 8
mrojze
Helper II
Helper II

Sorry I missed the last screenshot

mrojze_4-1692890638481.png

 

Thanks, I will try this out today. 🙂

mrojze
Helper II
Helper II

I made it work. Is there a better solution to this, very likely.

First, I created a regular table using the overwrite option in ADF

mrojze_1-1692890534826.png

 

2nd, I created an empty delta-partitioned table in a notebook

mrojze_2-1692890557320.png

 

3rd I inserted into the partitioned table from the staging table created in the first step.

mrojze_3-1692890600313.png

 

 

 

teeceegee
Regular Visitor

The original table was created in the lakehouse with the following parameters

 

overwrite_table.JPG

But when you select the append option the fields for enabling paritioning disappear and the execution of the pipeline fails.

 

append_table.JPG

 

Thanks for the info.

I'll try this myself, but I wonder if the overwrite partition clause is just to define the table.

Once you have to append, the table is already defined. You just go ahead and append. Data should flow into the proper partitions

Agreed, that was my expectation but, as I say, it errors when run.

Oh well, I was not expecting this:

mrojze_0-1692885981203.png

I am starting to think that our only option today is to go to a staging table with ADF and they do the insert into the partitioned using a notebook script.

 

mrojze
Helper II
Helper II

May I ask you how you created the Delta Lake table? Directly from a Copy? Can you share a screenshot?

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.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 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.

Top Solution Authors