Grouping sets aggregations (with rollups or cubes) are not allowed if aggregation function parameters overlap with the aggregation functions columns

hive 报错:Grouping sets aggregations (with rollups or cubes) are not allowed if aggregation function parameters overlap with the aggregation functions columns

聚合函数语法需要改正, 例如:sum(case when ....) 里面的条件有多个表,但需要改成一个表引用的字段就行,例如case when 后面有A表的字段和B表的字段,需要统一改成一个表的字段

猜你喜欢

转载自www.cnblogs.com/zhouxinlin/p/8982245.html