You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wan Kun (Jira)" <ji...@apache.org> on 2023/12/14 08:29:00 UTC

[jira] [Created] (SPARK-46403) Decode parquet binary dictionary with getBytesUnsafe method

Wan Kun created SPARK-46403:
-------------------------------

             Summary: Decode parquet binary dictionary with getBytesUnsafe method
                 Key: SPARK-46403
                 URL: https://issues.apache.org/jira/browse/SPARK-46403
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 4.0.0
            Reporter: Wan Kun


Now spark will get a parquet binary dictionary object with getBytes() method.

The *Binary.getBytes()* method will always make a new copy of the internal bytes.

We can use *Binary.getBytesUnsafe()* method to get the cached bytes if it has already been called getBytes() and has the cached bytes.

!image-2023-12-14-16-28-04-797.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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