Hive的數據模型之桶表

一 桶表(Bucket Table) 1、桶表是對數據進行哈希取值,然後放到不同文件中存儲。 2、桶表利用hash運算將某一列相同哈希放入到一個桶中,從而提高查詢效率。 二 理解桶表 三 創建桶表 hive> create table bucket_table > (sid int,sname string,age int) > clustered by(sname) into 5 buckets
相關文章
相關標籤/搜索