You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2019/05/28 20:30:00 UTC

[jira] [Created] (CALCITE-3096) In RelBuilder, make alias method idempotent

Julian Hyde created CALCITE-3096:
------------------------------------

             Summary: In RelBuilder, make alias method idempotent
                 Key: CALCITE-3096
                 URL: https://issues.apache.org/jira/browse/CALCITE-3096
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)