Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0
-
None
Description
Scala 2.13 has some different rules about resolving Arrays as Seqs when the array is of a reference type. This primarily affects calls to sc.parallelize(Array(...)) where elements aren't primitive:
[ERROR] [Error] /Users/seanowen/Documents/spark_2.13/mllib/src/main/scala/org/apache/spark/mllib/pmml/PMMLExportable.scala:61: overloaded method value apply with alternatives: (x: Unit,xs: Unit*)Array[Unit] <and> (x: Double,xs: Double*)Array[Double] <and> ...
This is easy to resolve by using Seq instead.
Closely related: WrappedArray is a type def in 2.13, which makes it unusable in Java. One set of tests needs to adapt.
Attachments
Issue Links
- links to