You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Rohit Agarwal (JIRA)" <ji...@apache.org> on 2014/04/22 08:39:22 UTC

[jira] [Updated] (HIVE-6950) Parsing Error in GROUPING SETS

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

Rohit Agarwal updated HIVE-6950:
--------------------------------

    Description: 
The following query:
{code}
SELECT tab1.a,
       tab1.b,
       SUM(tab1.c)
FROM tab1
GROUP BY tab1.a,
         tab1.b
GROUPING SETS ((tab1.a, tab1.b))
{code}
results in the following error:
{code}
ParseException line 7:22 missing ) at ',' near '<EOF>'
line 7:31 extraneous input ')' expecting EOF near '<EOF>'
{code}

Changing the query to:
{code}
SELECT tab1.a,
       tab1.b,
       SUM(tab1.c)
FROM tab1
GROUP BY tab1.a,
         tab1.b
GROUPING SETS ((a, tab1.b))
{code}
makes it work.

  was:
The following query:
{code}
SELECT tab1.a,
       tab1.b,
       SUM(tab1.c)
FROM tab1
GROUP BY tab1.a,
         tab1.b
GROUPING SETS ((tab1.a, tab1.b))
{code}
results in the following error:
{code}
parseexception line 7:22 missing ) at ',' near '' line 7:31 extraneous input ')' expecting eof near ''
{code}

Changing the query to:
{code}
SELECT tab1.a,
       tab1.b,
       SUM(tab1.c)
FROM tab1
GROUP BY tab1.a,
         tab1.b
GROUPING SETS ((a, tab1.b))
{code}
makes it work.


> Parsing Error in GROUPING SETS
> ------------------------------
>
>                 Key: HIVE-6950
>                 URL: https://issues.apache.org/jira/browse/HIVE-6950
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Rohit Agarwal
>
> The following query:
> {code}
> SELECT tab1.a,
>        tab1.b,
>        SUM(tab1.c)
> FROM tab1
> GROUP BY tab1.a,
>          tab1.b
> GROUPING SETS ((tab1.a, tab1.b))
> {code}
> results in the following error:
> {code}
> ParseException line 7:22 missing ) at ',' near '<EOF>'
> line 7:31 extraneous input ')' expecting EOF near '<EOF>'
> {code}
> Changing the query to:
> {code}
> SELECT tab1.a,
>        tab1.b,
>        SUM(tab1.c)
> FROM tab1
> GROUP BY tab1.a,
>          tab1.b
> GROUPING SETS ((a, tab1.b))
> {code}
> makes it work.



--
This message was sent by Atlassian JIRA
(v6.2#6252)