Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
After Hive-3633, if tbl1 and tbl2 are tables bucketiezed and sorted by key into 2 buckets, the following query:
select count from (
select /+mapjoin(a)/ a.key as key, a.value as val1, b.value as val2 from tbl1 a join tbl2 b on a.key = b.key
) subq1;
requires 2 MR job - the first one is a sort-merge join, and the second MR job
performs the count on the output of the sort-merge join.
Ideally, this should be performed in a single MR job.
Attachments
Issue Links
- depends upon
-
HIVE-3633 sort-merge join does not work with sub-queries
- Closed