Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2051

Rules using Aggregate might check for simple grouping sets incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.15.0
    • core
    • None

    Description

      CALCITE-1069 removed the indicator columns for Aggregate operators. In some places, the indicator boolean check was replaced by the following check: aggregate.getGroupSets().size() > 1. However, that check is incomplete, it should have been replaced by aggregate.getGroupType() != Group.SIMPLE.

      For instance : https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/rel/rules/AggregateProjectMergeRule.java#L91

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: