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

Denys Kuzmenko updated HIVE-24110:
----------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> 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
>             Fix For: 4.1.0
>
>          Time Spent: 40m
>  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.20.10#820010)

Reply via email to