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

Assertion error on AggregatePullUpConstantsRule while adjusting Aggregate indices

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.16.0
    • 1.17.0
    • core
    • 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

            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: