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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to