You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ryu Kobayashi (Jira)" <ji...@apache.org> on 2020/09/02 09:44:00 UTC

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

Ryu Kobayashi created HIVE-24110:
------------------------------------

             Summary: 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


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)