[ 
https://issues.apache.org/jira/browse/SPARK-40315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17599474#comment-17599474
 ] 

Apache Spark commented on SPARK-40315:
--------------------------------------

User 'c27kwan' has created a pull request for this issue:
https://github.com/apache/spark/pull/37771

> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to