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 2026/04/13 15:05:00 UTC

[jira] [Resolved] (SPARK-56444) BatchScanExec equals/hashCode contract violations

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

Wenchen Fan resolved SPARK-56444.
---------------------------------
    Fix Version/s: 4.2.0
       Resolution: Fixed

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

> BatchScanExec equals/hashCode contract violations
> -------------------------------------------------
>
>                 Key: SPARK-56444
>                 URL: https://issues.apache.org/jira/browse/SPARK-56444
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Anton Lykov
>            Assignee: Anton Lykov
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.2.0
>
>
> BatchScanExec.equals() violates reflexivity when batch is null (which happens after serialization round-trip since scan is @transient) — x.equals(x) returns false. Additionally, hashCode() does not include keyGroupedPartitioning despite equals() comparing it, violating the equals/hashCode contract.



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