[
https://issues.apache.org/jira/browse/CALCITE-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15337616#comment-15337616
]
Jark Wu commented on CALCITE-1297:
----------------------------------
I'm sorry to disturb you again. I do not get what you mean...
I tried to use RelBuilder.field("a", "a") or RelBuilder.field("a", "f0"), but
it throws {{no relation with alias 'a'; aliases are: [_DataSetTable_0]}}. And I
debug into {{field(String, String)}} and find that the {{stack.peek}} returns a
LogicalTableScan (the stack size is 1), not a Project.
My question is how can I refer to the field using the alias name, after using
an AS ?
I have been confused that why these code exist L788~L799 [1] ? It seems
duplicate with the following codes.
[1]
https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/tools/RelBuilder.java#L788-L790
> 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)