You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Yann Byron (Jira)" <ji...@apache.org> on 2022/10/08 03:39:00 UTC

[jira] [Closed] (HUDI-4915) Spark Avro SerDe returns wrong result upon multiple calls

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

Yann Byron closed HUDI-4915.
----------------------------
    Resolution: Won't Fix

> Spark Avro SerDe returns wrong result upon multiple calls
> ---------------------------------------------------------
>
>                 Key: HUDI-4915
>                 URL: https://issues.apache.org/jira/browse/HUDI-4915
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: spark
>            Reporter: Yann Byron
>            Assignee: Yann Byron
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 0.13.0
>
>
> Currently, Spark Avro serializer/deserializer has a bug that it will return the same object when we call this method twice continuously.  For example:
> val row1: InternalRow = ...
> val row2: InternalRow = ... // record2 is different with record1
>  
> val serializeredRecord1 = serialize(row1)
> val serializeredRecord2 = serialize(row2)
> serializeredRecord1.equals(serializeredRecord2)
>  
> That is because we use the `val` to declare the serializer/deserializer methods, so the latter's result will cover the previous one.
>  
>  



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