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

RelRoot.project does not take into account flattened record type

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.21.0
    • Component/s: core
    • Labels:
      None

      Description

      To reproduce, simply run:

      @Test public void testFlattenRecords()

      { sql("select employees[1] from dept_nested").ok(); }

      It will yield:

      LogicalProject(EXPR$0=[$0])
      LogicalProject(EXPR$0$0=[ITEM($2, 1).EMPNO], EXPR$0$1=[ITEM($2, 1).ENAME], EXPR$0$2=[ITEM($2, 1).DETAIL])
      LogicalTableScan(table=[[CATALOG, SALES, DEPT_NESTED]])

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                IhorHuzenko Igor Guzenko
                Reporter:
                suez1224 Shuyi Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: