You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Michael Smith (Jira)" <ji...@apache.org> on 2024/09/16 18:34:00 UTC
[jira] [Commented] (IMPALA-11340) Support BINARY in persistent legacy Java UDFs
[ https://issues.apache.org/jira/browse/IMPALA-11340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17882159#comment-17882159 ]
Michael Smith commented on IMPALA-11340:
----------------------------------------
There's no definition for BINARY in https://github.com/apache/impala/blob/master/be/src/udf/udf.h.
> Support BINARY in persistent legacy Java UDFs
> ---------------------------------------------
>
> Key: IMPALA-11340
> URL: https://issues.apache.org/jira/browse/IMPALA-11340
> Project: IMPALA
> Issue Type: Improvement
> Components: Frontend
> Reporter: Csaba Ringhofer
> Priority: Major
>
> The BINARY implementation in https://gerrit.cloudera.org/#/c/16066/ supports Java UDFs when the arguments and results are set explicitly, but does not create functions with BINARY types when only the class is given and Impala is supposed to create a function for all overloads of evaluate(),
> The reason is backwards compatibility - before BINARY support Impala mapped BytesWritable and BytesArray types to STRING, while Hive maps these types to BINARY. To avoid breaking existing queries in Impala, we cannot create functions with BINARY instead.
> If BytesWritable/BytesArray is present as argument, we could create functions with both signatures (on where all these types are mapped to STRING, one where all are mapped to BINARY), but this would not work if these types are only present as return type.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org