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

Jiaan Geng resolved SPARK-46403.
--------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 44351
[https://github.com/apache/spark/pull/44351]

> 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
>            Assignee: Wan Kun
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         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-30-39-104.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