Github user MLnick commented on a diff in the pull request: https://github.com/apache/spark/pull/20275#discussion_r162292520 --- Diff: mllib/src/test/scala/org/apache/spark/mllib/linalg/VectorsSuite.scala --- @@ -113,6 +113,13 @@ class VectorsSuite extends SparkFunSuite with Logging { assert(vec.toArray === arr) } + test("zero-length sparse vector") { --- End diff -- We may as well add the same test to `ml.linalg`
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org