Mahadevan Sudarsanan created PARQUET-647:
--------------------------------------------

             Summary: Null Pointer Exception in Hive upon reading Parquet
                 Key: PARQUET-647
                 URL: https://issues.apache.org/jira/browse/PARQUET-647
             Project: Parquet
          Issue Type: Bug
          Components: parquet-format, parquet-mr
    Affects Versions: 1.6.0
         Environment: Hadoop 2.6
Hive 0.14
Parquet 1.6
SPARK 1.6.1
Scala 2.11
            Reporter: Mahadevan Sudarsanan
            Priority: Blocker


When I write Parquet files from Spark Job, and try to read it in Hive as an 
External Table , I get Null Pointer Exception. After further analysis , I found 
I had some Null values in my transformation(used Dataset and DataFrame API's) 
before saving to parquet. These 2 fields which contains NULL are float data 
types. When I removed these two columns from the parquet datasets, I was able 
to read it in hive. Contrastingly , with all NULL columns I was able to read it 
Hive when I write my job to ORC format.
When a datatype is anything other than String , which is completely empty(NULL) 
written in parquet is not been able to read by Hive and throws NP Exception.



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

Reply via email to