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 e66e610 commit e5f469aCopy full SHA for e5f469a
core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala
@@ -847,9 +847,9 @@ class RDDSuite extends SparkFunSuite with SharedSparkContext {
847
}
848
849
test("cartesian on empty RDD") {
850
- val a = sc.makeRDD(Array[Int]())
+ val a = sc.emptyRDD[Int]
851
val b = sc.parallelize(1 to 3)
852
- val cartesian_result = Array[(Int, Int)]()
+ val cartesian_result = Array.empty[(Int, Int)]
853
assert(a.cartesian(a).collect().toList === cartesian_result)
854
assert(a.cartesian(b).collect().toList === cartesian_result)
855
assert(b.cartesian(a).collect().toList === cartesian_result)
0 commit comments