Details
Description
When using multiple insert with multiple group by, grouping__id will failed to be parse.
hive> create temporary table testtable3 (id string, name string);
OK
Time taken: 1.019 seconds
hive> create temporary table testtable2 (id string, name string);
OK
Time taken: 0.069 seconds
hive> create temporary table testtable1 (id string, name string);
OK
Time taken: 0.066 seconds
hive> insert into table testtable1 values ("id", "2333");
...
OK
Time taken: 32.515 seconds
hive> from testtable1
> insert into table testtable2 select
> id, GROUPING__ID
> group by id, name with cube;
...
OK
Time taken: 42.032 seconds
hive> from testtable1
> insert into table testtable2 select
> id, GROUPING__ID
> group by id, name with cube
> insert into table testtable3 select
> id, name
> group by id, name grouping sets ((id), (id, name));
FAILED: SemanticException [Error 10025]: Line 3:8 Expression not in GROUP BY key 'GROUPING__ID'