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

In RelBuilder, make alias method idempotent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.20.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: