Skip to content

Commit 69669c3

Browse files
committed
fix broken test
1 parent 1ddb3da commit 69669c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ class DataFrameSuite extends QueryTest {
514514
val n = 600
515515
val data = TestSQLContext.sparkContext.parallelize(1 to n, 2).toDF("id")
516516
for (seed <- 1 to 5) {
517-
val splits = data.randomSplit(Array(1, 2, 3), seed)
517+
val splits = data.randomSplit(Array[Double](1, 2, 3), seed)
518518
assert(splits.length == 3, "wrong number of splits")
519519

520520
assert(splits.reduce((a, b) => a.unionAll(b)).sort("id").collect().toList ==

0 commit comments

Comments
 (0)