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

Zhen Chen commented on CALCITE-7016:
------------------------------------

[~asolimando] Thank you for your very detailed response. I think this JIRA 
issue doesn’t need to be urgently merged into version 1.40.0. Your idea of 
generating SQL from RelNode is a great one, but I’m a bit concerned about 
whether all RelNodes can generate valid SQL—for example, semi-join or some 
other cases.

> Sql resources should not be included in XML when using relFn in 
> RelOptRulesTest testing
> ---------------------------------------------------------------------------------------
>
>                 Key: CALCITE-7016
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7016
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Zhen Chen
>            Assignee: Zhen Chen
>            Priority: Minor
>              Labels: pull-request-available
>
> Use relFn to construct a plan for rule validation, and SQL resources should 
> not be included in the result file(RelOptRulesTest.xml). If SQL can be used 
> to generate plans, it is not recommended to use relFn for construction. 
> Otherwise, it may lead to incorrect mapping between sql and planBefore.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to