You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/11/04 00:39:00 UTC

[jira] [Work logged] (HIVE-24110) NullPointerException occurs in some UDFs

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

ASF GitHub Bot logged work on HIVE-24110:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 04/Nov/20 00:38
            Start Date: 04/Nov/20 00:38
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on pull request #1468:
URL: https://github.com/apache/hive/pull/1468#issuecomment-721448242


   This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
   Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 507401)
    Time Spent: 0.5h  (was: 20m)

> 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
>          Time Spent: 0.5h
>  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)