hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-12744) GROUPING__ID failed to be recognized in multiple insert
Date Tue, 29 Dec 2015 18:46:49 GMT

     [ https://issues.apache.org/jira/browse/HIVE-12744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pengcheng Xiong updated HIVE-12744:
-----------------------------------
    Fix Version/s: 2.1.0
                   2.0.0

> 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
>             Fix For: 2.0.0, 2.1.0
>
>         Attachments: HIVE-12744.01.patch
>
>
> 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