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

Amareshwari Sriramadasu updated HIVE-1678:
------------------------------------------

    Attachment: patch-1678.txt

The bug is in plan generation when MapJoin is followed MapJoin, and is followed 
by ReduceSink. ReduceSink operator reads the input from oldMapJoin instead of 
current MapJoin.

Attached patch has one line fix in GenMapRedUtils.initMapJoinPlan to fix the 
bug. Also includes the testcase.

> NPE in MapJoin 
> ---------------
>
>                 Key: HIVE-1678
>                 URL: https://issues.apache.org/jira/browse/HIVE-1678
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Amareshwari Sriramadasu
>         Attachments: patch-1678.txt
>
>
> The query with two map joins and a group by fails with following NPE:
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.hadoop.hive.ql.exec.MapJoinOperator.processOp(MapJoinOperator.java:177)
>         at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:457)
>         at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:697)
>         at 
> org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84)
>         at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:457)
>         at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:697)
>         at 
> org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:464)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to