You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2019/10/10 00:01:24 UTC

[jira] [Resolved] (SPARK-29416) Replace Array.deep comparisons with Array.sameElements

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

Dongjoon Hyun resolved SPARK-29416.
-----------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

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

> Replace Array.deep comparisons with Array.sameElements
> ------------------------------------------------------
>
>                 Key: SPARK-29416
>                 URL: https://issues.apache.org/jira/browse/SPARK-29416
>             Project: Spark
>          Issue Type: Sub-task
>          Components: ML, Spark Core, SQL
>    Affects Versions: 3.0.0
>            Reporter: Sean R. Owen
>            Assignee: Sean R. Owen
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> {{Array.deep}} no longer exists in scala 2.13. It is used sometimes in the code to compare the elements of two arrays, as {{==}} tests only reference equality. However {{sameElements}} is better anyway. In cases involving nested arrays we might have to manually compare the sub-arrays though.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org