[
https://issues.apache.org/jira/browse/HIVE-25338?focusedWorklogId=623430&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-623430
]
ASF GitHub Bot logged work on HIVE-25338:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Jul/21 06:07
Start Date: 16/Jul/21 06:07
Worklog Time Spent: 10m
Work Description: nareshpr opened a new pull request #2485:
URL: https://github.com/apache/hive/pull/2485
### What changes were proposed in this pull request?
If conv UDF has empty input, return the output as empty rather than throwing
AIOBE.
### Why are the changes needed?
Query is failing
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Included Testcase in q file.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 623430)
Remaining Estimate: 0h
Time Spent: 10m
> AIOBE in conv UDF if input is empty
> -----------------------------------
>
> Key: HIVE-25338
> URL: https://issues.apache.org/jira/browse/HIVE-25338
> Project: Hive
> Issue Type: New Feature
> Reporter: Naresh P R
> Assignee: Naresh P R
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Repro
> {code:java}
> create table test (a string);
> insert into test values ("");
> select conv(a,16,10) from test;{code}
> Exception trace:
> {code:java}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.hadoop.hive.ql.udf.UDFConv.evaluate(UDFConv.java:160){code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)