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 "Peter Rozsa (Jira)" <ji...@apache.org> on 2023/01/20 16:04:00 UTC

[jira] [Created] (IMPALA-11854) ImpalaStringWritable's underlying array can't be changed in UDFs

Peter Rozsa created IMPALA-11854:
------------------------------------

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


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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org