hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gunther Hagleitner (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6716) ORC struct throws NPE for tables with inner structs having null values
Date Mon, 24 Mar 2014 19:18:44 GMT

     [ https://issues.apache.org/jira/browse/HIVE-6716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gunther Hagleitner updated HIVE-6716:
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.13.0
           Status: Resolved  (was: Patch Available)

Committed to trunk and branch. Thanks [~prasanth_j]!

> 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
>              Labels: orcfile
>             Fix For: 0.13.0
>
>         Attachments: HIVE-6716.1.patch
>
>
> 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)

Mime
View raw message