You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Aihua Xu (JIRA)" <ji...@apache.org> on 2016/09/13 13:53:20 UTC

[jira] [Created] (HIVE-14742) Hive on spark throws NPE exception for union all query

Aihua Xu created HIVE-14742:
-------------------------------

             Summary: Hive on spark throws NPE exception for union all query 
                 Key: HIVE-14742
                 URL: https://issues.apache.org/jira/browse/HIVE-14742
             Project: Hive
          Issue Type: Bug
          Components: Spark
    Affects Versions: 2.0.0
            Reporter: Aihua Xu
            Assignee: Aihua Xu


{noformat}
create table foo (fooId string, fooData string) partitioned by (fooPartition string) stored as parquet;
insert into foo partition (fooPartition = '1') values ('1', '1'), ('2', '2');
set hive.execution.engine=spark;
select * from ( 
select 
fooId as myId, 
fooData as myData 
from foo where fooPartition = '1' 
union all 
select 
fooId as myId, 
fooData as myData 
from foo where fooPartition = '3' 
) allData;
{noformat}

Error while compiling statement: FAILED: NullPointerException null



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)