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

RelToSqlConverter should only generate "*" if field names match

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.15.0
    • Fix Version/s: 1.16.0
    • Component/s: jdbc-adapter
    • Labels:
      None

      Description

      This RelNode tree:

      LogicalProject(x=[$0])
        LogicalTableScan(table=[[t]])
      

      is converted to:

      SELECT *
      FROM `t`
      

      when it should be:

      SELECT `a` AS `x`
      FROM `t`
      

      See dev list thread.

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              AustinHaas Austin Haas
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: