Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-25075 Build and test Spark against Scala 2.13
  3. SPARK-29416

Replace Array.deep comparisons with Array.sameElements

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • ML, Spark Core, SQL
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              srowen Sean R. Owen
              srowen Sean R. Owen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: