hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (HIVE-14759) GenericUDF.getFuncName breaks with UDF Classnames less than 10 characters
Date Tue, 16 Jun 2020 16:59:00 GMT


ASF GitHub Bot logged work on HIVE-14759:

                Author: ASF GitHub Bot
            Created on: 16/Jun/20 16:58
            Start Date: 16/Jun/20 16:58
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on pull request #101:

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

Issue Time Tracking

            Worklog Id:     (was: 446747)
    Remaining Estimate: 50m  (was: 1h)
            Time Spent: 10m

> GenericUDF.getFuncName breaks with UDF Classnames less than 10 characters
> -------------------------------------------------------------------------
>                 Key: HIVE-14759
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>    Affects Versions: 2.1.0
>            Reporter: Clemens Valiente
>            Assignee: Clemens Valiente
>            Priority: Trivial
>         Attachments: HIVE-14759.1.patch, HIVE-14759.2.patch, HIVE-14759.patch
>   Original Estimate: 1h
>          Time Spent: 10m
>  Remaining Estimate: 50m
> {code}
> return getClass().getSimpleName().substring(10).toLowerCase();
> {code}
> causes
> {code}
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
>     at java.lang.String.substring(
>     at org.apache.hadoop.hive.ql.udf.generic.GenericUDF.getFuncName(
> {code}
> if the Classname of my UDF is less than 10 characters.
> this was probably to remove "GenericUDF" from the classname but causes issues if the
class doesn't start with it.

This message was sent by Atlassian Jira

View raw message