Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Why doesn't hive bucketing work at partition level?

avatar
Frequent Visitor

Any hive bucketing experts here?

I have this scenario where my each of my individual partitions needs to be bucketed at a different level. I have tried the following scenarios but it doesn't work.

  1. Created a bucketed table and created a partition (date_id='2022-10-22') and set the bucketing number to 64.

Result: No of files created in the target partition is equivalent to no of buckets in the source table (6). Expected file count is 64.

  1. Created a non bucketed table and created a partition (date_id='2022-10-22') and set the bucketing number to 64. Result: No of files created the target is not related to source files count either

Please share your thoughts.

Thanks

1 REPLY 1

avatar
Master Collaborator

Could you kindly provide the DDL and a sample dataset to facilitate a more in-depth explanation?