[ https://issues.apache.org/jira/browse/HIVE-14742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aihua Xu resolved HIVE-14742. ----------------------------- Resolution: Duplicate Assignee: (was: Aihua Xu) Actually it has been fixed by HIVE-9570. > 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 > > {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)