Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-21529 [Umbrella] Hive Query Syntax Compatibility
  3. FLINK-22726

Hive GROUPING__ID returns different value in older versions

    XMLWordPrintableJSON

Details

    Description

      Hive's GROUPING__ID changed since 2.3.0. In current implementation we use Calcite's GROUPING_ID operator which yields same value as hive >= 2.3.0. When integrate with older hive, we should follow the previous behavior.

      Refer to:
      https://issues.apache.org/jira/browse/HIVE-16102
      https://cwiki.apache.org/confluence/display/Hive/Enhanced+Aggregation%2C+Cube%2C+Grouping+and+Rollup#EnhancedAggregation,Cube,GroupingandRollup-Grouping__IDfunction(beforeHive2.3.0)

      Attachments

        Issue Links

          Activity

            People

              lirui Rui Li
              lirui Rui Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: