You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Pengcheng Xiong (JIRA)" <ji...@apache.org> on 2016/10/20 20:08:58 UTC

[jira] [Commented] (CALCITE-1448) Add rules to flatten and prune Intersect and Minus

    [ 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.apache@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)