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

RelBuilder's project() doesn't preserve alias

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: core
    • Labels:
      None

      Description

      The alias should be preserved by the project node, e.g.

      .scan("EMP")
      .as("EMP_alias")
      .project(...) // resets alias to null
      .project(builder.field("EMP_alias", "DEPTNO")) // fails that no such alias exists
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                jbalint@gmail.com Jess Balint
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: