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 2017/06/19 21:16:00 UTC

[jira] [Updated] (CALCITE-1850) Extend UnionMergeRule to deal with more than 2 branches

     [ https://issues.apache.org/jira/browse/CALCITE-1850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pengcheng Xiong updated CALCITE-1850:
-------------------------------------
    Attachment: CALCITE-1850.01.patch

> Extend UnionMergeRule to deal with more than 2 branches
> -------------------------------------------------------
>
>                 Key: CALCITE-1850
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1850
>             Project: Calcite
>          Issue Type: New Feature
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>         Attachments: CALCITE-1850.01.patch
>
>
> Current Calcite can only deal with the case when call.rel(2) is a setop and topOp's input size is 2. See L116 in core/src/main/java/org/apache/calcite/rel/rules/UnionMergeRule.java. The test cases introduced in [CALCITE-1448] can only deal with 2 levels of unions. When we are trying to apply this rule to Hive, we found its limitation when we have multi-levels (>2) of unions. (e.g. union30.q in Hive test case). This jira is trying to extend that rule to deal with more levels.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)