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

Assertion error on AggregatePullUpConstantsRule while adjusting Aggregate indices

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.16.0
    • Fix Version/s: 1.17.0
    • Component/s: core
    • Labels:
      None

      Description

      Executing the following query:

      select ename, sal
      from (select '1', ename, sal from emp where ename = 'John') subq
      group by ename, sal;
      

      results in the following error:

      java.lang.AssertionError: Cannot add expression of different type to set:
      set type is RecordType(VARCHAR(20) CHARACTER SET "ISO-8859-1" COLLATE "ISO-8859-1$en_US$primary" NOT NULL ENAME, INTEGER NOT NULL SAL) NOT NULL
      expression type is RecordType(INTEGER NOT NULL ENAME, INTEGER NOT NULL SAL) NOT NULL
      set is rel#21:LogicalAggregate(input=HepRelVertex#20,group={1, 5})
      expression is LogicalProject#24
      

        Attachments

          Activity

            People

            • Assignee:
              jcamachorodriguez Jesus Camacho Rodriguez
              Reporter:
              jcamachorodriguez Jesus Camacho Rodriguez
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: