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

In RelBuilder, make alias method idempotent

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.20.0
    • Component/s: None
    • Labels:
      None

      Description

      In RelBuilder, make the alias method idempotent. If an expression's alias is already 'foo', then calling alias(e, "foo") will return the expression unchanged.

      The intent of this change is to reduce the number of if statements that are required in client code that is trying to produce a concise RelNode tree.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              julianhyde Julian Hyde
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: