[ 
https://issues.apache.org/jira/browse/CALCITE-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16031351#comment-16031351
 ] 

Julian Hyde commented on CALCITE-1584:
--------------------------------------

Calcite doesn't promise to retain field names. 95% of the time it can and does, 
but 5% of the time it really can't retain field names without seriously 
compromising the Volcano engine.

I think I should close this bug as "not a bug".

To address [[email protected]]'s original problem, we could make RelBuilder 
smarter: if it sees {{Project(a as x, b as y, c as z)}} on top of {{Project(a, 
b, d + e as c)}}, it should fold them to {{Project(a as x, b as y, d + e as 
z)}}. But we can't do much with ProjectRemoveRule.

> ProjectRemoveRule loses field names
> -----------------------------------
>
>                 Key: CALCITE-1584
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1584
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Jess Balint
>            Assignee: Julian Hyde
>            Priority: Minor
>
> the rule doesn't properly identify a child {{Project}} node



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to