Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12764 Support Intersect (distinct/all) Except (distinct/all) Minus (distinct/all) in Hive
  3. HIVE-14957

HiveSortLimitPullUpConstantsRule misses branches when parent operator is Union

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1, 2.2.0
    • None
    • None

    Description

      call.transformTo(parent.copy(parent.getTraitSet(), ImmutableList.of(relBuilder.build())));
      

      When parent is an union operator which has 2 inputs, the parent.copy will only copy the one that has SortLimit and ignore the other branches.

      Attachments

        1. HIVE-14957.01.patch
          1 kB
          Pengcheng Xiong
        2. HIVE-14957.02.patch
          1 kB
          Pengcheng Xiong

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: