Skip to content

Commit cd05866

Browse files
committed
Fix scalastyle
1 parent 3947fc1 commit cd05866

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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) }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)