Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1850

Extend UnionMergeRule to deal with more than 2 branches

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.13.0
    • core
    • None

    Description

      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.

      Attachments

        1. CALCITE-1850.01.patch
          5 kB
          Pengcheng Xiong

        Activity

          People

            pxiong Pengcheng Xiong
            pxiong Pengcheng Xiong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: