[ 
https://issues.apache.org/jira/browse/SPARK-46403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wan Kun updated SPARK-46403:
----------------------------
    Attachment: image-2023-12-14-16-30-39-104.png

> Decode parquet binary 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
>            Priority: Major
>         Attachments: image-2023-12-14-16-30-39-104.png
>
>
> Now spark will get a parquet binary 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