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

Sort merge join not used when join columns have different names

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
    • 0.10.0
    • 0.10.0
    • Query Processor
    • None
    • Reviewed

    Description

      If two tables are joined on columns with different names, the sort merge join optimization is not applied. E.g.

      SELECT /*+ MAPJOIN(b) */ * FROM t1 a JOIN t2 b ON a.key = b.value;

      This will not use sort merge join even if t1 and t2 are bucketed and sorted by key, value respectively.

      Attachments

        1. HIVE-3673.1.patch.txt
          11 kB
          Kevin Wilfong
        2. HIVE-3673.2.patch.txt
          23 kB
          Kevin Wilfong

        Activity

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

          People

            kevinwilfong Kevin Wilfong Assign to me
            kevinwilfong Kevin Wilfong
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment