[
https://issues.apache.org/jira/browse/IMPALA-11854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Rozsa resolved IMPALA-11854.
----------------------------------
Resolution: Done
> ImpalaStringWritable's underlying array can't be changed in UDFs
> ----------------------------------------------------------------
>
> Key: IMPALA-11854
> URL: https://issues.apache.org/jira/browse/IMPALA-11854
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 4.3.0
> Reporter: Peter Rozsa
> Assignee: Peter Rozsa
> Priority: Major
>
> ImpalaStringWritable's getBytes() implementation returns the copy of the
> underlying buffer, therefore the original value can't be changed. This
> behavior makes UDFs work erroneously when they contain operations that would
> change the BINARY/TEXT arguments. For example:
> [https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/udf/esri/ST_SetSRID.java#L47]
> where the incoming `geomref` argument should change, but it gets returned
> unchanged.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]