Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21007

Semi join + Union can lead to wrong plans

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • None
    • None

    Description

      Tez compiler has the ability to push JOIN within UNION (by replicating join on each branch). If this JOIN had a SJ branch outgoing (or incoming) it could mess up the plan and end up generating incorrect or wrong plan.
      As a safe measure any SJ branch after UNION should be removed (until we improve the logic to better handle SJ branches)

      Attachments

        1. HIVE-21007.1.patch
          3 kB
          Vineet Garg
        2. HIVE-21007.2.patch
          75 kB
          Vineet Garg
        3. HIVE-21007.3.patch
          130 kB
          Vineet Garg
        4. HIVE-21007.4.patch
          130 kB
          Vineet Garg
        5. HIVE-21007.5.patch
          130 kB
          Vineet Garg
        6. HIVE-21007.6.patch
          130 kB
          Vineet Garg
        7. HIVE-21007.7.patch
          130 kB
          Vineet Garg

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vgarg Vineet Garg Assign to me
            vgarg Vineet Garg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment