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

Julian Hyde commented on CALCITE-2718:
--------------------------------------

You might find 
.[RelRoot|https://calcite.apache.org/javadocAggregate/org/apache/calcite/rel/RelRoot.html]
 useful. If you have any further questions,  please post to dev. Closed bugs 
are closed.

> field names are unexpected after ProjectRemoveRule applied
> ----------------------------------------------------------
>
>                 Key: CALCITE-2718
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2718
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.17.0
>            Reporter: godfrey he
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.18.0
>
>
> {code:java}
> @Test public void testProjectRemove() {
>     final String sql = "select name as n from (select name from dept) t";
>     sql(sql).withRule(ProjectRemoveRule.INSTANCE).check();
>   }
> {code}
> currently, the result plan is: 
> {panel:title=plan}
> LogicalProject(NAME=[$1])
>   LogicalTableScan(table=[[CATALOG, SALES, DEPT]])
> {panel}
> the filed name of LogicalProject should be `N` instead of `NAME`



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to