HIVEでgroup by
selectするカラムをgroup byしないといけない
select
a,b,c
from test
group by a
する場合
select
a,b,c
from test
group by a,b,c
みたいにする
select
a
b
count(c)
from test
group by a,b
countやsum等はgroup byしなくてもOK
LanguageManual GroupBy - Apache Hive - Apache Software Foundation