Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15994

Grouping function error when grouping sets are not specified

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      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

        Attachments

        1. HIVE-15994.01.patch
          21 kB
          Jesus Camacho Rodriguez
        2. HIVE-15994.02.patch
          21 kB
          Jesus Camacho Rodriguez
        3. HIVE-15994.patch
          20 kB
          Jesus Camacho Rodriguez

          Issue Links

            Activity

              People

              • Assignee:
                jcamachorodriguez Jesus Camacho Rodriguez
                Reporter:
                cartershanklin Carter Shanklin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: