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

Assertion error on AggregatePullUpConstantsRule while adjusting Aggregate indices

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment