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

Grouping function error when grouping sets are not specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • None
    • None

    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.patch
          20 kB
          jcamachorodriguez
        2. HIVE-15994.01.patch
          21 kB
          jcamachorodriguez
        3. HIVE-15994.02.patch
          21 kB
          jcamachorodriguez

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              cartershanklin Carter Shanklin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: