We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0a6be9 commit ab62b32Copy full SHA for ab62b32
core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala
@@ -656,8 +656,8 @@ class RDDSuite extends SparkFunSuite with SharedSparkContext with Eventually {
656
}
657
658
test("top with predefined ordering") {
659
- val nums = Array.range(1, 100000)
660
- val ints = sc.makeRDD(scala.util.Random.shuffle(nums).toSeq, 2)
+ val nums = Seq.range(1, 100000)
+ val ints = sc.makeRDD(scala.util.Random.shuffle(nums), 2)
661
val topK = ints.top(5)
662
assert(topK.size === 5)
663
assert(topK === nums.reverse.take(5))
0 commit comments