Support Questions

Find answers, ask questions, and share your expertise

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
Master 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