hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Lee (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-12744) GROUPING__ID failed to be recognized in multiple insert
Date Thu, 24 Dec 2015 07:42:49 GMT
Jay Lee created HIVE-12744:
------------------------------

             Summary: GROUPING__ID failed to be recognized in multiple insert
                 Key: HIVE-12744
                 URL: https://issues.apache.org/jira/browse/HIVE-12744
             Project: Hive
          Issue Type: Bug
          Components: Parser
    Affects Versions: 1.2.1
         Environment: apache hive 1.2.1
apache hadoop 2.6.2
            Reporter: Jay Lee
            Assignee: Pengcheng Xiong


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'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message