[
https://issues.apache.org/jira/browse/CALCITE-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15335277#comment-15335277
]
Jark Wu commented on CALCITE-1297:
----------------------------------
Say we have a Table(f0, f1, f2) , and we want to make aliases for every field
using RelBuilder :
{code:java}
relBuilder.project(
Lists.newArrayList(
relBuilder.alias(relBuilder.field("f0"), "a"),
relBuilder.alias(relBuilder.field("f1"), "b"),
relBuilder.alias(relBuilder.field("f2"), "c")),
Lists.newArrayList("a", "b", "c")
);
{code}
But it will not change anything, we do not get the new project.
And I create a PR for fix this : https://github.com/apache/calcite/pull/251
> 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)