从蜂巢桶读取记录的问题

Issue in reading records from hive bucket

我创建了一个带有 4 个桶的配置单元 table.. 我可以从第 n 个桶读取数据..

例如..

Select * from collection tablesample(bucket 1 out of 4 on loan_id)

但是如何从第 2 个和第 3 个存储桶中检索数据..

尝试联合所有:

Select * from collection tablesample(bucket 2 out of 4 on loan_id)
UNION ALL
Select * from collection tablesample(bucket 3 out of 4 on loan_id)