Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Hive bucketing

avatar
New Contributor

i have 4 buckets in a hive table

is it possible to pull the records from 2nd and 3rd bucket at the same time

1 REPLY 1

avatar
Super Collaborator

Hi,

Can you try with below command:

select * from bucketing_table tablesample(bucket n out of y on clustered_criteria_column);

 

n => nth bucket

y => total no. of buckets