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 "Csaba Ringhofer (Jira)" <ji...@apache.org> on 2022/06/07 14:08:00 UTC

[jira] [Created] (IMPALA-11340) Support BINARY in persistent legacy Java UDFs

Csaba Ringhofer created IMPALA-11340:
----------------------------------------

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


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.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org