cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Liquid clustering on partitioned delta table where new data is added by replacing the partition

SusmithaBadam
New Contributor II

Hi There,

Currently we have the bronze, silver & gold delta tables partition by a string and yearmonth column, we maintain the entire historic data of 5 years and replace the partitions (latest 2 months) to add the new data.

We use overwrite mode to replace the effected partitions.

Can liquid clustering be applied on these tables? I want to take the advantage of liquid clustering but want to overwrite the effected months only.

 

 

4 REPLIES 4

MariuszK
Valued Contributor III

Hi,

You will need to update the data. Liquid clustering doesn't use physical folders for partitions, which means that you can't just override files in a folder with a partition.

Liquid clastering has its own benefits such incremental optimizalization, or effective data organziataion in files, but to migrate to Liquid clastering you will need to recreate tables.

To take advantage of liquid clustering do I have to change the entire design of table to capture new data? between, which is the preferred mode or approach?

But by removing the portioning I have to change the approach of capturing new data, is there any preferred way of capturing new data to apply LC?  

szymon_dybczak
Esteemed Contributor III

Hi @SusmithaBadam ,

Short answer is no. Liquid Clustering is not compatible with partitioning or ZORDER. So, if you want to use LC you need to first remove partitioning from your tables.

Use liquid clustering for tables - Azure Databricks | Microsoft Learn

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now