【Hive报错】Grouping sets aggregations (with rollups or cubes) are not allowed if aggregation function..
最近遇到一个关于Groupingsets的报错,为了不涉密,这边用模拟了一条sql,如下:报错的sql语句:selectclass,info['type']astype,GROUPING__ID,count(distinctcasewheninfo['num']0thenidend)ascntfrom(selectclass,info['type']astype,info,idfromtable_