You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2025/03/13 13:36:00 UTC

[jira] [Resolved] (SPARK-51438) Make CatalystDataToProtobuf and ProtobufDataToCatalyst properly comparable and hashable

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

Wenchen Fan resolved SPARK-51438.
---------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

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

> Make CatalystDataToProtobuf and ProtobufDataToCatalyst properly comparable and hashable
> ---------------------------------------------------------------------------------------
>
>                 Key: SPARK-51438
>                 URL: https://issues.apache.org/jira/browse/SPARK-51438
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.1.0
>            Reporter: Vladimir Golubev
>            Assignee: Vladimir Golubev
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> `CatalystDataToProtobuf` and `ProtobufDataToCatalyst` have `Array[Byte]` in their case class fields, which makes them incomparable using the default-generated equals, because `Array.equals` performs reference comparison. We need to use `Array.sameElements`.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org