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

Fix internal usages of mutable collection for Seq in 2.13

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.1.0
    • Spark Core
    • None

    Description

      Kind of related to https://issues.apache.org/jira/browse/SPARK-27681, but a simpler subset.

      In 2.13, a mutable collection can't be returned as a scala.collection.Seq. It's easy enough to call .toSeq on these as that still works on 2.12.

      [ERROR] [Error] /Users/seanowen/Documents/spark_2.13/core/src/main/scala/org/apache/spark/ExecutorAllocationManager.scala:467: type mismatch;
       found   : Seq[String] (in scala.collection) 
       required: Seq[String] (in scala.collection.immutable) 
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: