You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Prasanth J (JIRA)" <ji...@apache.org> on 2014/03/21 03:00:44 UTC

[jira] [Created] (HIVE-6716) ORC struct throws NPE for tables with inner structs having null values

Prasanth J created HIVE-6716:
--------------------------------

             Summary: ORC struct throws NPE for tables with inner structs having null values 
                 Key: HIVE-6716
                 URL: https://issues.apache.org/jira/browse/HIVE-6716
             Project: Hive
          Issue Type: Bug
    Affects Versions: 0.13.0, 0.14.0
            Reporter: Prasanth J
            Assignee: Prasanth J


ORCStruct should return null when object passed to getStructFieldsDataAsList(Object obj) is null.

{code}
public List<Object> getStructFieldsDataAsList(Object object) {
      OrcStruct struct = (OrcStruct) object;
      List<Object> result = new ArrayList<Object>(struct.fields.length);
{code}

In the above code struct.fields will throw NPE if struct is NULL.



--
This message was sent by Atlassian JIRA
(v6.2#6252)