Dear Developers:

Here is a bug in org.apache.spark.ml.linalg.*:
Class Vector, Vectors are not included in org.apache.spark.ml.linalg.*, 
but they are used in VectorAssembler.scala as follows:

import org.apache.spark.ml.linalg.{Vector, Vectors, VectorUDT}

Therefore, bug was reported when I was using VectorAssembler.

Since org.apache.spark.mllib.linalg.* contains the class {Vector, Vectors, 
VectorUDT}, I rewrote VectorAssembler.scala as XVectorAssembler.scala by 
mainly changing "import org.apache.spark.ml.linalg.{Vector, Vectors, 
VectorUDT}" to 
"import org.apache.spark.mllib.linalg.{Vector, Vectors, VectorUDT}"

But bug occured as follows:

" Column v must be of type org.apache.spark.ml.linalg.VectorUDT@3bfc3ba7 
but was actually org.apache.spark.mllib.linalg.VectorUDT@f71b0bce "

Would you please help fix the bug?

Thank you very much!

Best regards
--xiongjunjie

Reply via email to