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

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

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

> Functions in AttributeMap are non-deterministic
> -----------------------------------------------
>
>                 Key: SPARK-54339
>                 URL: https://issues.apache.org/jira/browse/SPARK-54339
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Andy Lam
>            Assignee: Andy Lam
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> The `scala2.13` implementation of {{{}+{}}}, {{{}updated{}}}, and {{removed}} 
> in {{AttributeMap}} is buggy. It incorrectly converted the internal baseMap 
> to a regular Map[Attribute, A] that hashes on Attribute objects directly.
> This causes non-determinism (potential correctness) issues caused by 
> different Attribute subclass implementations having different hashCode 
> behaviors (e.g., AttributeReference includes {{{}metadata{}}}, {{qualifier}} 
> in its hash).
> The {{++}} implementation is correct.



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