You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Raymond Xu (Jira)" <ji...@apache.org> on 2022/09/25 16:47:00 UTC
[jira] [Assigned] (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 ]
Raymond Xu reassigned HUDI-4915:
--------------------------------
Assignee: Yann Byron
> 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.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)