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
amaaiia
Super User
Super User

Convert partitioned Parquet table into Delta table dinamically

Hi.

I have a list of Parquet tables under Files directory in my lakehouse. Each table is partitioned by different columns, some of them are partitioned by 1 column, others by 2, others by 3... and the name of each column is different depending on the table.

 

I want to create a Data Pipeline so I pass a table_name parameter and it COPIES the table_name table under Files directory into Tables directory as a Delta table, keeping the same partitions as in Files.

 

I need this proccess to be dynamic, that is, I'm not telling the pipeline which are the partitions for the table, I only pass the table_name and de pipeline should be able to COPY the table with SAME partitions but as delta table.

 

If possible, I want to do it with COPY activity instead of using notebook.

 

Any ideas?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @amaaiia 

 

Here are some suggestions I have for the questions you asked:

 

Create a pipeline parameter called table_name.

 

Use Get Metadata activity to retrieve the partition information for the specified table. This activity will help you determine the partition column dynamically.

 

Use ForEach activity to iterate over the partition columns retrieved from the Get Metadata activity.

 

In the ForEach activity, use Copy activity to copy the data from the Parquet table in the Files directory to the Delta table in the Tables directory. Make sure to set the partition column dynamically based on the metadata.

 

Regards,

Nono Chen

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  @amaaiia 

 

Here are some suggestions I have for the questions you asked:

 

Create a pipeline parameter called table_name.

 

Use Get Metadata activity to retrieve the partition information for the specified table. This activity will help you determine the partition column dynamically.

 

Use ForEach activity to iterate over the partition columns retrieved from the Get Metadata activity.

 

In the ForEach activity, use Copy activity to copy the data from the Parquet table in the Files directory to the Delta table in the Tables directory. Make sure to set the partition column dynamically based on the metadata.

 

Regards,

Nono Chen

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

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.