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

Feng Zhu commented on CALCITE-3669:
-----------------------------------

Hi, [~jackylau], I update your description for the issue.

You can ask for a contributor's permission through dev-mail-list. Then you can 
assign the task to yourself.

> logical plan optimizer test not correct
> ---------------------------------------
>
>                 Key: CALCITE-3669
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3669
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: jackylau
>            Priority: Major
>
> We can see test blow from RelOptRulesTest.java
> It validates for testEmptySort, but this rule will not be fired. 
> and it should add PruneEmptyRules.PROJECT_INSTANCE will fire it.
> Sort -> Project -> Filter -> Scan will be Sort ->Project ->Value(empty) by 
> ReduceExpressionsRule.FILTER_INSTANCE 
>  
> {code:java}
> @Test public void testEmptySort() {
>   HepProgram program = new 
> HepProgramBuilder().addRuleInstance(ReduceExpressionsRule.FILTER_INSTANCE).addRuleInstance(PruneEmptyRules.SORT_INSTANCE).build();
>  
>   checkPlanning(program, "select * from emp where false order by deptno");
> }
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to