[
https://issues.apache.org/jira/browse/HIVE-14759?focusedWorklogId=450147&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-450147
]
ASF GitHub Bot logged work on HIVE-14759:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Jun/20 00:28
Start Date: 24/Jun/20 00:28
Worklog Time Spent: 10m
Work Description: github-actions[bot] closed pull request #101:
URL: https://github.com/apache/hive/pull/101
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 450147)
Remaining Estimate: 40m (was: 50m)
Time Spent: 20m (was: 10m)
> GenericUDF.getFuncName breaks with UDF Classnames less than 10 characters
> -------------------------------------------------------------------------
>
> Key: HIVE-14759
> URL: https://issues.apache.org/jira/browse/HIVE-14759
> Project: Hive
> Issue Type: Bug
> Components: UDF
> Affects Versions: 2.1.0
> Reporter: Clemens Valiente
> Assignee: Clemens Valiente
> Priority: Trivial
> Labels: pull-request-available
> Attachments: HIVE-14759.1.patch, HIVE-14759.2.patch, HIVE-14759.patch
>
> Original Estimate: 1h
> Time Spent: 20m
> Remaining Estimate: 40m
>
> {code}
> return getClass().getSimpleName().substring(10).toLowerCase();
> {code}
> causes
> {code}
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> at java.lang.String.substring(String.java:1875)
> at
> org.apache.hadoop.hive.ql.udf.generic.GenericUDF.getFuncName(GenericUDF.java:258)
> {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
(v8.3.4#803005)