You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Sergey Shelukhin (JIRA)" <ji...@apache.org> on 2016/11/17 23:29:59 UTC
[jira] [Commented] (HIVE-15235) sortmergejoin can produce incorrect
plan wrt dummy operators, and NPE
[ https://issues.apache.org/jira/browse/HIVE-15235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15675132#comment-15675132 ]
Sergey Shelukhin commented on HIVE-15235:
-----------------------------------------
[~hagleitn] [~mbalakrishnan] fyi
> sortmergejoin can produce incorrect plan wrt dummy operators, and NPE
> ---------------------------------------------------------------------
>
> Key: HIVE-15235
> URL: https://issues.apache.org/jira/browse/HIVE-15235
> Project: Hive
> Issue Type: Bug
> Reporter: Sergey Shelukhin
>
> The relevant fragment of the reduce plan of a Tez job is as follows:
> {noformat}
> <MERGEJOIN>Id =13
> <Children>
> <SEL>Id =12
> <Children>
> <MAPJOIN>Id =10
> <Children>
> ...
> <\Children>
> <Parent>Id = 12 nullId = 9
> <HASHTABLEDUMMY>Id =9
> <Children>null
> <\Children>
> <Parent><\Parent>
> <\HASHTABLEDUMMY><\Parent>
> <\MAPJOIN>
> <\Children>
> <Parent>Id = 13 null<\Parent>
> <\SEL>
> <\Children>
> {noformat}
> When sortmergejoin is enabled, during initialization, dummy operators are not initialized (presumably, they are not present in the work); that results in MapJoin not being initialized, even though its proper parent is.
> Manifests as an NPE
> {noformat}
> Caused by: java.lang.NullPointerException
> at org.apache.hadoop.hive.ql.exec.MapJoinOperator.process(MapJoinOperator.java:350)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)