Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14742

Hive on spark throws NPE exception for union all query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.0.0
    • None
    • Spark
    • None

    Description

      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;
      

      Error while compiling statement: FAILED: NullPointerException null

      Attachments

        Activity

          People

            Unassigned Unassigned
            aihuaxu Aihua Xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: