5万人关注的大数据成神之路,不来了解一下吗?
5万人关注的大数据成神之路,真的不来了解一下吗?
5万人关注的大数据成神之路,确定真的不来了解一下吗?...group by,join,distribute by,cluster by...
order by比较特殊,只需要一个reduce
sum,count,distinct......distinct 优化
优化前
select count(distinct id) from tablename
优化后
select count(1) from (select distinct...id from tablename) tmp;
select count(1) from (select id from tablename group by id) tmp;
优化前
select a...,sum(b),count(distinct c),count(distinct d) from test group by a
优化后
select a,sum(b) as b,count(c) as