开发者社区 问答 正文

Hive中distribute by和cluster by的区别有哪些?

Hive中distribute by和cluster by的区别有哪些?

展开
收起
游客5n3d3br4o5qn4 2021-12-06 17:07:40 564 分享 版权
1 条回答
写回答
取消 提交回答
  • distribute by:类似MR的Partition,对key进行分区,结合sort by实现分区排序 cluster by:当distribute by和sort by的字段相同时,可以使用cluster by代替,但cluster by只能是升序,不能指定排序规则

    2021-12-06 17:07:58
    赞同 展开评论
问答分类:
问答地址: