Michael Smith created IMPALA-12184:
--------------------------------------
Summary: Java UDF increment on an empty string is inconsistent
Key: IMPALA-12184
URL: https://issues.apache.org/jira/browse/IMPALA-12184
Project: IMPALA
Issue Type: Bug
Affects Versions: Impala 4.3.0
Reporter: Michael Smith
Fix For: Impala 4.3.0
Java 8 and Java 11 seem to match different signatures forĀ {{{}select
increment("");{}}}, and one is implemented to return null for empty string
while the other ends up returning empty string.
When passed a string, which signature of BufferAlteringUdf matches it appears
to be arbitrary: in Java 8, Class.getMethods() returns the BytesWritable
signature first (and the Thrift STRING type fits that signature) while in Java
11 it returns the Text signature first (which Thrift STRING type also matches).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)