Skip to content

Commit 613e16f

Browse files
committed
Test with larger data.
1 parent 1d7ffaa commit 613e16f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/UnsafeExternalSortSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class UnsafeExternalSortSuite extends SparkPlanTest with BeforeAndAfterAll {
4545
randomDataGenerator <- RandomDataGenerator.forType(dataType, nullable)
4646
) {
4747
test(s"sorting on $dataType with nullable=$nullable, sortOrder=$sortOrder") {
48-
val inputData = Seq.fill(10)(randomDataGenerator()).filter {
48+
val inputData = Seq.fill(1000)(randomDataGenerator()).filter {
4949
case d: Double => !d.isNaN
5050
case f: Float => !java.lang.Float.isNaN(f)
5151
case x => true
@@ -57,7 +57,7 @@ class UnsafeExternalSortSuite extends SparkPlanTest with BeforeAndAfterAll {
5757
assert(UnsafeExternalSort.supportsSchema(inputDf.schema))
5858
checkAnswer(
5959
inputDf,
60-
UnsafeExternalSort(sortOrder, global = true, _: SparkPlan, testSpillFrequency = 3),
60+
UnsafeExternalSort(sortOrder, global = true, _: SparkPlan, testSpillFrequency = 23),
6161
Sort(sortOrder, global = true, _: SparkPlan),
6262
sortAnswers = false
6363
)

0 commit comments

Comments
 (0)