-
- Downloads
[SPARK-7452] [MLLIB] fix bug in topBykey and update test
the toArray function of the BoundedPriorityQueue does not necessarily preserve order. Add a counter-example as the test, which would fail the original impl. Author: Shuo Xiang <shuoxiangpub@gmail.com> Closes #5990 from coderxiang/topbykey-test and squashes the following commits: 98804c9 [Shuo Xiang] fix bug in topBykey and update test
Showing
- mllib/src/main/scala/org/apache/spark/mllib/rdd/MLPairRDDFunctions.scala 1 addition, 1 deletion...scala/org/apache/spark/mllib/rdd/MLPairRDDFunctions.scala
- mllib/src/test/scala/org/apache/spark/mllib/rdd/MLPairRDDFunctionsSuite.scala 5 additions, 4 deletions.../org/apache/spark/mllib/rdd/MLPairRDDFunctionsSuite.scala
Please register or sign in to comment