标签: hive hiveql
我正在蜂巢中两个不同列的corr和另一个avg的蜂巢中做group by UDF,但是它给出了所有空值。 我写得像:
corr
avg
group by
select col1, corr(FR, CMR) from( select col1, avg(col2) as FR, avg(col3) as CMR from table group by col1)a group by col1;