You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Janick Bernet (JIRA)" <ji...@apache.org> on 2016/04/11 22:56:25 UTC

[jira] [Commented] (HIVE-12954) NPE with str_to_map on null strings

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

Janick Bernet commented on HIVE-12954:
--------------------------------------

This also appears to be in Hive 1.0. The closely related 'split' function does handle NULL transparently, without an NPE.

> NPE with str_to_map on null strings
> -----------------------------------
>
>                 Key: HIVE-12954
>                 URL: https://issues.apache.org/jira/browse/HIVE-12954
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.14.0, 1.0.0
>            Reporter: Charles Pritchard
>
> Running str_to_map on a null string will return a NullPointerException.
> Workaround is to use coalesce.



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