You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/09/02 12:41:00 UTC
[jira] [Assigned] (SPARK-40315) Non-deterministic hashCode() calculations for ArrayBasedMapData on equal objects
[ https://issues.apache.org/jira/browse/SPARK-40315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-40315:
------------------------------------
Assignee: (was: Apache Spark)
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org