File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
core/src/test/scala/org/apache/spark/util/collection/unsafe/sort
sql/core/src/test/scala/org/apache/spark/sql/execution Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,14 @@ class PrefixComparatorsSuite extends SparkFunSuite with PropertyChecks {
35
35
(prefixComparisonResult > 0 && s1 > s2))
36
36
}
37
37
38
+ // scalastyle:off
38
39
val regressionTests = Table (
39
40
(" s1" , " s2" ),
40
41
(" abc" , " 世界" ),
41
42
(" 你好" , " 世界" ),
42
43
(" 你好123" , " 你好122" )
43
44
)
45
+ // scalastyle:on
44
46
45
47
forAll (regressionTests) { (s1 : String , s2 : String ) => testPrefixComparison(s1, s2) }
46
48
forAll { (s1 : String , s2 : String ) => testPrefixComparison(s1, s2) }
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class UnsafeExternalSortSuite extends SparkPlanTest with BeforeAndAfterAll {
66
66
// Test sorting on different data types
67
67
for (
68
68
dataType <- DataTypeTestUtils .atomicTypes ++ Set (NullType )
69
- if ! dataType.isInstanceOf [DecimalType ]; // Since we don't have an unsafe representation for decimals
69
+ if ! dataType.isInstanceOf [DecimalType ]; // We don't have an unsafe representation for decimals
70
70
nullable <- Seq (true , false );
71
71
sortOrder <- Seq (' a .asc :: Nil , ' a .desc :: Nil );
72
72
randomDataGenerator <- RandomDataGenerator .forType(dataType, nullable)
You can’t perform that action at this time.
0 commit comments