File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
sql/core/src/test/scala/org/apache/spark/sql/execution Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,7 @@ class UnsafeExternalSortSuite extends SparkPlanTest with BeforeAndAfterAll {
83
83
randomDataGenerator <- RandomDataGenerator .forType(dataType, nullable)
84
84
) {
85
85
test(s " sorting on $dataType with nullable= $nullable, sortOrder= $sortOrder" ) {
86
- val inputData = Seq .fill(1000 )(randomDataGenerator()).filter {
87
- case d : Double => ! d.isNaN
88
- case f : Float => ! java.lang.Float .isNaN(f)
89
- case x => true
90
- }
86
+ val inputData = Seq .fill(1000 )(randomDataGenerator())
91
87
val inputDf = TestSQLContext .createDataFrame(
92
88
TestSQLContext .sparkContext.parallelize(Random .shuffle(inputData).map(v => Row (v))),
93
89
StructType (StructField (" a" , dataType, nullable = true ) :: Nil )
You can’t perform that action at this time.
0 commit comments