File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mllib/src/main/scala/org/apache/spark/mllib/api/python Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -526,8 +526,8 @@ private[python] class PythonMLLibAPI extends Serializable {
526526
527527 val documents = data.rdd.map(_.asScala.toArray).map { r =>
528528 r(0 ).getClass.getSimpleName match {
529- case " Integer" => (r(0 ).asInstanceOf [java.lang.Integer ].toLong, r(1 ).asInstanceOf [Vector ])
530- case " Long" => (r(0 ).asInstanceOf [java.lang.Long ].toLong, r(1 ).asInstanceOf [Vector ])
529+ case " Integer" => (r(0 ).asInstanceOf [java.lang.Integer ].toLong, r(1 ).asInstanceOf [Vector ])
530+ case " Long" => (r(0 ).asInstanceOf [java.lang.Long ].toLong, r(1 ).asInstanceOf [Vector ])
531531 case _ => throw new IllegalArgumentException (" input values contains invalid type value." )
532532 }
533533 }
You can’t perform that action at this time.
0 commit comments