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 {
3535 (prefixComparisonResult > 0 && s1 > s2))
3636 }
3737
38+ // scalastyle:off
3839 val regressionTests = Table (
3940 (" s1" , " s2" ),
4041 (" abc" , " 世界" ),
4142 (" 你好" , " 世界" ),
4243 (" 你好123" , " 你好122" )
4344 )
45+ // scalastyle:on
4446
4547 forAll (regressionTests) { (s1 : String , s2 : String ) => testPrefixComparison(s1, s2) }
4648 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 {
6666 // Test sorting on different data types
6767 for (
6868 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
7070 nullable <- Seq (true , false );
7171 sortOrder <- Seq (' a .asc :: Nil , ' a .desc :: Nil );
7272 randomDataGenerator <- RandomDataGenerator .forType(dataType, nullable)
You can’t perform that action at this time.
0 commit comments