一 桶表(Bucket Table)
1、桶表是对数据进行哈希取值,然后放到不同文件中存储。
2、桶表利用hash运算将某一列相同哈希放入到一个桶中,从而提高查询效率。

二 理解桶表
Hive的数据模型之桶表

三 创建桶表
hive> create table bucket_table
> (sid int,sname string,age int)
> clustered by(sname) into 5 buckets;
OK
Time taken: 0.566 seconds
hive> desc bucket_table;
OK
sid int
sname string
age int
Time taken: 0.906 seconds, Fetched: 3 row(s)


相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2022-02-19
  • 2021-06-14
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-09-09
猜你喜欢
  • 2022-01-21
  • 2021-11-19
  • 2021-05-17
  • 2021-12-24
  • 2022-12-23
  • 2021-05-19
  • 2021-09-14
相关资源
相似解决方案