[ https://issues.apache.org/jira/browse/HIVE-12616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15050087#comment-15050087 ]
Xuefu Zhang commented on HIVE-12616: ------------------------------------ [~nemon], thanks for the patch. Looking at the patch, I'm not sure if it fixes the problem. You're building a JobConf from hiveconf and then check if spark.master is null in the JobConf. If so, you copied the value from HiveConf. I'm afraid that the value you get from HiveConf will be also null. It would be great if you can add your test case as part of the patch. > NullPointerException when spark session is reused to run a mapjoin > ------------------------------------------------------------------ > > Key: HIVE-12616 > URL: https://issues.apache.org/jira/browse/HIVE-12616 > Project: Hive > Issue Type: Bug > Components: Spark > Affects Versions: 1.3.0 > Reporter: Nemon Lou > Assignee: Nemon Lou > Attachments: HIVE-12616.patch > > > The way to reproduce: > {noformat} > set hive.execution.engine=spark; > create table if not exists test(id int); > create table if not exists test1(id int); > insert into test values(1); > insert into test1 values(1); > select max(a.id) from test a ,test1 b > where a.id = b.id; > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)