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

Phabricator updated HIVE-4927:
------------------------------

    Attachment: HIVE-4927.D11811.3.patch

yhuai updated the revision "HIVE-4927 [jira] When we merge two MapJoin 
MapRedTasks, the TableScanOperator of the second one should be removed".

  generate the correct diff. The last one is not based on the latest trunk

Reviewers: JIRA

REVISION DETAIL
  https://reviews.facebook.net/D11811

CHANGE SINCE LAST DIFF
  https://reviews.facebook.net/D11811?vs=36183&id=36189#toc

AFFECTED FILES
  
ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/CommonJoinTaskDispatcher.java
  ql/src/test/results/clientpositive/auto_join13.q.out
  ql/src/test/results/clientpositive/auto_join2.q.out
  ql/src/test/results/clientpositive/auto_join22.q.out
  ql/src/test/results/clientpositive/auto_sortmerge_join_12.q.out
  ql/src/test/results/clientpositive/join28.q.out
  ql/src/test/results/clientpositive/join32.q.out
  ql/src/test/results/clientpositive/join33.q.out
  ql/src/test/results/clientpositive/join_star.q.out
  ql/src/test/results/clientpositive/mapjoin_mapjoin.q.out
  ql/src/test/results/clientpositive/mapjoin_subquery.q.out
  ql/src/test/results/clientpositive/mapjoin_subquery2.q.out
  ql/src/test/results/clientpositive/multiMapJoin1.q.out
  ql/src/test/results/clientpositive/multi_join_union.q.out

To: JIRA, yhuai

                
> When we merge two MapJoin MapRedTasks, the TableScanOperator of the second 
> one should be removed
> ------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-4927
>                 URL: https://issues.apache.org/jira/browse/HIVE-4927
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.12.0
>            Reporter: Yin Huai
>            Assignee: Yin Huai
>         Attachments: HIVE-4927.D11811.1.patch, HIVE-4927.D11811.2.patch, 
> HIVE-4927.D11811.3.patch
>
>
> {code}
> set hive.auto.convert.join=true;
> set hive.auto.convert.join.noconditionaltask=true;
> EXPLAIN
> SELECT x1.key AS key FROM src x1 JOIN src1 y1 ON (x1.key = y1.key) JOIN src1 
> y2 ON (x1.value = y2.value) GROUP BY x1.key;
> {\code}
> We will get a NPE from MetadataOnlyOptimizer. The reason is that the operator 
> tree of the MapRedTask evaluating two MapJoins is 
> {code}
> TS1->MapJoin1->TS2->MapJoin2->...
> {\code}
> We should remove the TS2...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to