我创建了一个包含4个bucket的配置单元表。。我可以从第n个桶中读取数据。。
例如。。
Select * from collection tablesample(bucket 1 out of 4 on loan_id)
但是如何从第二个和第三个bucket中检索数据。。
尝试UNION ALL:
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)