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

Julian Hyde commented on CALCITE-1297:
--------------------------------------

Ah, that's wrong. {{RelBuilder.field}} must use the field names just created 
(even if that thing was optimized away).

To implement, {{field(int, int, String)}} would need to use {{stack.peek()}} 
rather than {{input.getRowType()}}. {{field(String, String)}} already does the 
right thing.

> RelBuilder does not translate identity projects even if they rename fields
> --------------------------------------------------------------------------
>
>                 Key: CALCITE-1297
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1297
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.8.0
>            Reporter: Jark Wu
>            Assignee: Julian Hyde
>             Fix For: 1.9.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to