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: 

Bucketing on Delta Tables

Rahul_Samant
Contributor

getting error as below while creating buckets on delta table.

Error in SQL statement: AnalysisException: Delta bucketed tables are not supported.

have fall back to parquet table due to this for some use cases. is their any alternative for this. i have to join over 30 tables and biggest table have over 300M Records . joining fields have high cardinality and can't be used for partition so need to do bucketing.

1 ACCEPTED SOLUTION

Accepted Solutions

Anonymous
Not applicable

Hi @Rahul Samant​  , we checked internally on this due to certain limitations bucketing is not supported on delta tables, the only alternative for bucketing is to leverage the z ordering, below is the link for reference

https://docs.databricks.com/delta/optimizations/file-mgmt.html#z-ordering-multi-dimensional-clusteri...

View solution in original post

5 REPLIES 5

-werners-
Esteemed Contributor III

Delta has Z-Ordering and Bloom filters, check it out, lots to read:

https://docs.databricks.com/delta/optimizations/index.html

Rahul_Samant
Contributor

@Werner Stinckens​ , Yeah checked it but Z-Ordering has to be triggered separately and it doesn't work well with auto compaction enabled with delta table.

Kaniz
Community Manager
Community Manager

Hi @Rahul Samant​ , Just a friendly follow-up. Do you still need help, or @Werner Stinckens​ 's response help you to find the solution? Please let us know.

Rahul_Samant
Contributor

Thanks @Kaniz Fatma​  for the follow-up , we are using mix of both types. depending on the use-case.

didn't find the alternative for bucketing

Anonymous
Not applicable

Hi @Rahul Samant​  , we checked internally on this due to certain limitations bucketing is not supported on delta tables, the only alternative for bucketing is to leverage the z ordering, below is the link for reference

https://docs.databricks.com/delta/optimizations/file-mgmt.html#z-ordering-multi-dimensional-clusteri...

Join 100K+ Data Experts: Register Now & Grow with Us!

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!