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

Raymond Xu updated HUDI-4915:
-----------------------------
    Summary: Spark Avro SerDe returns wrong result upon multiple calls  (was: 
Improve Spark Avro SerDe)

> 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
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 0.12.1
>
>
> 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)

Reply via email to