โ02-07-2024 02:47 AM
I know we have 4 keys max on cluster by () for both z-order and partition keys. I got some issues when adding 4 keys and 1 specific key triggers that error (I was not expecting as this is about Create Table) . Stats makes sense if you need to optimize an existing clustering strategy due to changes on data profile DeltaAnalysisException: Liquid clustering requires clustering columns to have stats
โ02-07-2024 04:57 AM
are you sure the 4 columns you defined for LC are statistics-enabled?
By default, only the first 32 are used. This can be overridden (up or down).
โ02-07-2024 03:33 AM
Hi @RobsonNLPT, Liquid clustering is a powerful feature available in Delta Lake, specifically designed to simplify data layout decisions and optimize query performance.
Here are some key points about liquid clustering:
What Is Liquid Clustering Used For?
Enabling Liquid Clustering:
Column Statistics and Clustering Keys:
Compatibility and Requirements:
Example Syntax for Enabling Liquid Clustering:
Remember, liquid clustering empowers you to adapt your data layout dynamically, making it a valuable tool for optimizing query performance in evolving scenarios. ๐๐
For more details, you can refer to the official Databricks documentation on liquid clustering.
โ02-07-2024 04:01 AM - edited โ02-07-2024 04:02 AM
I'm aware about the feature and definitions. I've created an empty table enabled to LC using 4 keys.
I've got the error "DeltaAnalysisException: Liquid clustering requires clustering columns to have stats"
How its possible if I just created an empty table?
โ02-07-2024 04:57 AM
are you sure the 4 columns you defined for LC are statistics-enabled?
By default, only the first 32 are used. This can be overridden (up or down).
โ02-07-2024 07:45 AM
My table has only 19 columns
โ02-15-2024 03:17 AM
That's correct. One of the cluster keys I was trying to clustering is not on top 32 positions
Thank you
โ02-13-2024 05:10 AM
Any update?
Excited to expand your horizons with us? Click here to Register and begin your journey to success!
Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!