Grouping sets aggregations (with rollups or cubes) are not allowed if aggregation function parameter...

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表的字段,需要统一改成一个表的字段

转载于:https://www.cnblogs.com/zhouxinlin/p/8982245.html

你可能感兴趣的:(Grouping sets aggregations (with rollups or cubes) are not allowed if aggregation function parameter...)