You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2017/02/21 10:24:44 UTC

[jira] [Created] (HIVE-15994) Grouping function error when grouping sets are not specified

Jesus Camacho Rodriguez created HIVE-15994:
----------------------------------------------

             Summary: Grouping function error when grouping sets are not specified
                 Key: HIVE-15994
                 URL: https://issues.apache.org/jira/browse/HIVE-15994
             Project: Hive
          Issue Type: Bug
    Affects Versions: 2.2.0
            Reporter: Carter Shanklin
            Assignee: Jesus Camacho Rodriguez


hive> select grouping(c1), lead(c2) over(partition by grouping(c1)) from e011_01 group by c1, c2;
FAILED: SemanticException Failed to breakup Windowing invocations into Groups. At least 1 group must only depend on input columns. Also check for circular dependencies.
Underlying error: org.apache.hadoop.hive.ql.parse.SemanticException: Line 1:48 Arguments length mismatch 'c1': grouping() requires 2 argument, got 1



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)