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

Wenchen Fan resolved SPARK-40315.
---------------------------------
    Fix Version/s: 3.3.1
                   3.1.4
                   3.2.3
                   3.4.0
       Resolution: Fixed

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

> Non-deterministic hashCode() calculations for ArrayBasedMapData on equal 
> objects
> --------------------------------------------------------------------------------
>
>                 Key: SPARK-40315
>                 URL: https://issues.apache.org/jira/browse/SPARK-40315
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 3.2.2
>            Reporter: Carmen Kwan
>            Priority: Major
>             Fix For: 3.3.1, 3.1.4, 3.2.3, 3.4.0
>
>
> There is no explicit `hashCode()` function override for the 
> `ArrayBasedMapData` LogicalPlan. As a result, the `hashCode()` computed for 
> `ArrayBasedMapData` can be different for two equal objects (objects with 
> equal keys and values).
> This error is non-deterministic and hard to reproduce, as we don't control 
> the default `hashCode()` function.
> We should override the `hashCode` function so that it works exactly as we 
> expect. We should also have an explicit `equals()` function for consistency 
> with how `Literals` check for equality of `ArrayBasedMapData`.



--
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