Hive Sql 发表于 2018-12-25 | 更新于: 2020-06-06 group by 和count distinctselect count(t.order_no) from (select order_no from order_snap group by order_no) t;原理 shuffle到一个reducer的数据太大 https://www.zhihu.com/question/60581895 sort by 和 order by