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

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

Sean R. Owen created SPARK-29416:
------------------------------------

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


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