Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

build error for scala 2.11 #57

Open
sain-lee opened this issue Feb 8, 2018 · 1 comment
Open

build error for scala 2.11 #57

sain-lee opened this issue Feb 8, 2018 · 1 comment

Comments

@sain-lee
Copy link

sain-lee commented Feb 8, 2018

change the scala verison to 2.11
and sbt build error:
[info] Compiling 15 Scala sources to /data0/jd_ad/lisai/keyword/lsh/spark-neighbors-master/target/scala-2.11/classes...
[error] /data0/jd_ad/lisai/keyword/lsh/spark-neighbors-master/src/main/scala/com/github/karlhigley/spark/neighbors/ANNModel.scala:153: type arguments [Any] do not conform to class HashTableEntry's type parameter bounds [+S <: com.github.karlhigley.spark.neighbors.lsh.Signature[_]]
[error] indHashFunctions.map {
[error] ^
[error] /data0/jd_ad/lisai/keyword/lsh/spark-neighbors-master/src/main/scala/com/github/karlhigley/spark/neighbors/ANNModel.scala:153: type arguments [Any] do not conform to class HashTableEntry's type parameter bounds [+S <: com.github.karlhigley.spark.neighbors.lsh.Signature[_]]
[error] indHashFunctions.map {
[error] ^
[error] two errors found
[error] (compile:compileIncremental) Compilation failed

@Nirvanada
Copy link

I did some minor changes at line 153

indHashFunctions.map { case (hashFunc: LSHFunction[_], table) => hashFunc.hashTableEntry(id, table, vector) }.toIterator

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants