spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 颜发才(Yan Facai) <yaf...@gmail.com>
Subject Vector is not found in case class after import
Date Fri, 04 Nov 2016 08:43:02 GMT
 Hi,
My spark-shell version is 2.0.1.

I import the Vector and hope to use it in case class, while spark-shell
throws an error: not found.

scala> import org.apache.spark.ml.linalg.{Vector => OldVector}
import org.apache.spark.ml.linalg.{Vector=>OldVector}

scala> case class Movie(vec: OldVector)
<console>:11: error: not found: type OldVector
       case class Movie(vec: OldVector)
                             ^

Is it a bug?

Mime
View raw message