You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Sushil Kumar S (JIRA)" <ji...@apache.org> on 2015/09/10 15:49:45 UTC

[jira] [Commented] (HIVE-8846) Null checks missing in ORC list and map object inpsectors

    [ https://issues.apache.org/jira/browse/HIVE-8846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14738770#comment-14738770 ] 

Sushil Kumar S commented on HIVE-8846:
--------------------------------------

This issue has been fixed as part of HIVE-9111 by [~prasanth_j], correct me if am wrong.

> Null checks missing in ORC list and map object inpsectors
> ---------------------------------------------------------
>
>                 Key: HIVE-8846
>                 URL: https://issues.apache.org/jira/browse/HIVE-8846
>             Project: Hive
>          Issue Type: Bug
>          Components: File Formats
>    Affects Versions: 0.11.0, 0.12.0, 0.13.0, 0.13.1
>            Reporter: Gregory Hart
>            Priority: Critical
>              Labels: orcfile
>
> The OrcListObjectInspector and OrcMapObjectInspector classes do not check for null data and instead throw an exception. To comply with the JavaDocs for ListObjectInspector and MapObjectInspector, these classes should be updated to check for null data.
> The following checks should be added for OrcListObjectInspector:
> - getListElement(Object, int) should return null for null list, out-of-the-range index
> - getListLength(Object) should return -1 for data = null
> - getList(Object) should return null for data = null
> The following checks should be added for OrcMapObjectInspector:
> - getMap(Object) should return null for data = null
> - getMapSize(Object) return -1 for NULL map



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