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

Replace ambiguous varargs call parallelize(Array) with parallelize(Seq)

    XMLWordPrintableJSON

Details

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

    Description

      Another general class of Scala 2.13 compile errors:

      [ERROR] [Error] /Users/seanowen/Documents/spark_2.13/core/src/test/scala/org/apache/spark/ShuffleSuite.scala:47: overloaded method value apply with alternatives:
        (x: Unit,xs: Unit*)Array[Unit] <and>
        (x: Double,xs: Double*)Array[Double] <and>
        (x: Float,xs: Float*)Array[Float] <and>
        (x: Long,xs: Long*)Array[Long] <and>
        (x: Int,xs: Int*)Array[Int] <and>
        (x: Char,xs: Char*)Array[Char] <and>
        (x: Short,xs: Short*)Array[Short] <and>
        (x: Byte,xs: Byte*)Array[Byte] <and>
        (x: Boolean,xs: Boolean*)Array[Boolean]
       cannot be applied to ((Int, Int), (Int, Int), (Int, Int), (Int, Int))
      

      All of these (almost all?) are from calls to SparkContext.parallelize with an Array of tuples. We can replace them with Seqs, which seems to work.

      Attachments

        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: