hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryu Kobayashi (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-24110) NullPointerException occurs in some UDFs
Date Fri, 04 Sep 2020 02:25:00 GMT

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

Ryu Kobayashi commented on HIVE-24110:
--------------------------------------

pull request: https://github.com/apache/hive/pull/1468

> NullPointerException occurs in some UDFs
> ----------------------------------------
>
>                 Key: HIVE-24110
>                 URL: https://issues.apache.org/jira/browse/HIVE-24110
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>            Reporter: Ryu Kobayashi
>            Assignee: Ryu Kobayashi
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-24110.01.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Since it refers to a variable that has not been initialized, NullPointerException occurs
and the correct error message is not displayed.
>  
> {code:java}
> if (arguments[0].getCategory() != ObjectInspector.Category.PRIMITIVE) {
>   throw new UDFArgumentException(
>                   "OCTET_LENGTH only takes primitive types, got " + argumentOI.getTypeName());
> }
> argumentOI = (PrimitiveObjectInspector) arguments[0];
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message