hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Condit (JIRA)" <>
Subject [jira] [Created] (HIVE-7473) Null values in DECIMAL columns cause serialization issues with HCatalog
Date Tue, 22 Jul 2014 19:36:38 GMT
Craig Condit created HIVE-7473:

             Summary: Null values in DECIMAL columns cause serialization issues with HCatalog
                 Key: HIVE-7473
             Project: Hive
          Issue Type: Bug
          Components: Serializers/Deserializers
    Affects Versions: 0.13.1
            Reporter: Craig Condit

WritableHiveDecimalObjectInspector appears to be missing null checks in getPrimitiveWritableObject(Object)
and getPrimitiveJavaObject(Object). The same checks do exist in WritableHiveVarcharObjectInspector.

Attempting to read from a table in HCatalog containing null values for decimal columns results
in the following exception (Pig used here):

Error: org.apache.pig.backend.executionengine.ExecException: ERROR 6018: Error converting
read value to tuple at org.apache.hive.hcatalog.pig.HCatBaseLoader.getNext(
at org.apache.hive.hcatalog.pig.HCatLoader.getNext( at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(
at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(
at org.apache.hadoop.mapreduce.task.MapContextImpl.nextKeyValue( at$Context.nextKeyValue(
at at org.apache.hadoop.mapred.MapTask.runNewMapper(
at at org.apache.hadoop.mapred.YarnChild$
at Method) at
at at
org.apache.hadoop.mapred.YarnChild.main( Caused by: java.lang.NullPointerException
at org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableHiveDecimalObjectInspector.getPrimitiveJavaObject(
at org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableHiveDecimalObjectInspector.getPrimitiveJavaObject(
at at
at org.apache.hive.hcatalog.mapreduce.HCatRecordReader.nextKeyValue(
at org.apache.hive.hcatalog.pig.HCatBaseLoader.getNext( ... 13 more

This message was sent by Atlassian JIRA

View raw message