[ https://issues.apache.org/jira/browse/HIVE-9513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14297833#comment-14297833 ]
ErwanMAS commented on HIVE-9513: -------------------------------- in 0.14 we have FAILED: SemanticException The abstract syntax tree is null or FAILED: SemanticException 4:36 Schema of both sides of union should match. e-subquery2 does not have the field dummyfoo. Error encountered near token 'bar' {noformat} create table foo ( dummyfoo string ) ; create table bar ( dummybar string ) ; Version1 : select * from ( select * from ( select 1 as id , dummyfoo from foo ) f union all select * from ( select 2 as id , dummybar from bar ) g ) e ; Version 2 : select * from ( select 1 as id , dummyfoo from foo f union all select 2 as id , dummybar from bar g ) e ; {noformat} > NULL POINTER EXCEPTION > ---------------------- > > Key: HIVE-9513 > URL: https://issues.apache.org/jira/browse/HIVE-9513 > Project: Hive > Issue Type: Bug > Components: CLI > Affects Versions: 0.13.1 > Reporter: ErwanMAS > > NPE duting parsing of : > {noformat} > select * from ( > select * from ( select 1 as id , "foo" as str_1 from staging.dual ) f > union all > select * from ( select 2 as id , "bar" as str_2 from staging.dual ) g > ) e ; > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)