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/24 17:50:00 UTC

[jira] [Created] (IMPALA-11861) Impala*Writable methods are not overridden to handle the heap-stored values

Peter Rozsa created IMPALA-11861:
------------------------------------

             Summary: Impala*Writable methods are not overridden to handle the heap-stored values
                 Key: IMPALA-11861
                 URL: https://issues.apache.org/jira/browse/IMPALA-11861
             Project: IMPALA
          Issue Type: Bug
          Components: Frontend
    Affects Versions: Impala 4.3.0
            Reporter: Peter Rozsa


Impala writable types are extending Hive's writable types but their real values are stored on the native heap, therefore every method that is coming from their parents should be overridden with an explicit get() which does an indirection through UnsafeUtils to the heap.

For example; ImpalaDoubleWritable's toString is used in a UDF, but since there's no override present in the class, the original value from the Hive class will be stringified and returned, which is, in Impala's case always will be a zero-initialized value.



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