You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ashutosh Chauhan (JIRA)" <ji...@apache.org> on 2014/03/24 21:52:43 UTC

[jira] [Updated] (HIVE-3763) Aggregation followed by a sort-merge join requires a new MR job

     [ https://issues.apache.org/jira/browse/HIVE-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashutosh Chauhan updated HIVE-3763:
-----------------------------------

    Fix Version/s: 0.11.0

> Aggregation followed by a sort-merge join requires a new MR job
> ---------------------------------------------------------------
>
>                 Key: HIVE-3763
>                 URL: https://issues.apache.org/jira/browse/HIVE-3763
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>             Fix For: 0.11.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)