[ https://issues.apache.org/jira/browse/CALCITE-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15592850#comment-15592850 ]
Pengcheng Xiong commented on CALCITE-1448: ------------------------------------------ Hi [~jhyde.apa...@gmail.com], thanks for your patch. The merge rule can be further improved for {code} topOp.all != bottomOp.all {code} for union and intersect cases. Right now, it is covering the cases {code} topOp.all, bottomOp.all {code} are {code}true,true{code},{code}false,false{code}. Actually, it should also cover the case {code}false,true{code}. That is, if the top level is distinct, we can always merge. > Add rules to flatten and prune Intersect and Minus > -------------------------------------------------- > > Key: CALCITE-1448 > URL: https://issues.apache.org/jira/browse/CALCITE-1448 > Project: Calcite > Issue Type: Sub-task > Reporter: Pengcheng Xiong > Assignee: Julian Hyde > Fix For: 1.11.0 > > > similar to current unionMergeRule. -- This message was sent by Atlassian JIRA (v6.3.4#6332)