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

Skew Join optimization doesn't work if parent gets converted to MapJoin task

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

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.11.0
    • None
    • None
    • None

    Description

      Skew join optimization (GenMRSkewJoinProcessor.java) assumes that its parent stage(that will create directory structure for skewed keys) will have a Reduce Join Operator. GenMRSkewJoinProcessor sets the "handleSkewJoin" flag only in that case.

      But it is possible that parent stage gets converted to MapJoin task (because of hive.auto.convert.join flag). In that case "handleSkewJoin" is not set for parent stage and it will not create directory structure for skewed keys in hdfs. This eventually leads to elimination of skew join conditional task (and its children) because the conditional task is not able to find the skewed key directories.

      Shouldn't the MapJoinOperator also handle skew join and create directory structure for skewed keys in addition to performing map join for the non-skewed keys?

      Attachments

        Activity

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

          People

            Unassigned Unassigned Assign to me
            kamboj Ankit Kamboj

            Dates

              Created:
              Updated:

              Slack

                Issue deployment