Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22032#discussion_r208608273
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/LSH.scala ---
    @@ -97,7 +97,8 @@ private[ml] abstract class LSHModel[T <: LSHModel[T]]
     
       override def transform(dataset: Dataset[_]): DataFrame = {
         transformSchema(dataset.schema, logging = true)
    -    val transformUDF = udf(hashFunction, DataTypes.createArrayType(new 
VectorUDT))
    +    val transformUDF = udf({ v: Vector => hashFunction(v) },
    --- End diff --
    
    Yeah, that's what I had. It didn't compile in Scala 2.11 for some reason 
(see the "fails to build" build above). This seemed to work though.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to