Skip to content

Commit 291da46

Browse files
yusinnmaoclaude
andcommitted
Fix Spotless formatting in strings.scala and test suite
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 81298f4 commit 291da46

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

spark/src/main/scala/org/apache/comet/serde/strings.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ object CometLevenshtein extends CometScalarFunction[Levenshtein]("levenshtein")
9292
override def getSupportLevel(expr: Levenshtein): SupportLevel = {
9393
expr.children.headOption match {
9494
case Some(child) if QueryPlanSerde.isStringCollationType(child.dataType) =>
95-
Unsupported(Some(
96-
"Levenshtein with non-default collation is not supported"))
95+
Unsupported(Some("Levenshtein with non-default collation is not supported"))
9796
case _ => Compatible()
9897
}
9998
}

spark/src/test/scala/org/apache/comet/CometStringExpressionSuite.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,7 @@ class CometStringExpressionSuite extends CometTestBase {
510510
}
511511

512512
test("levenshtein with threshold") {
513-
val data = Seq(
514-
("kitten", "sitting"),
515-
("frog", "fog"),
516-
("abc", "abc"),
517-
("hello", "world"))
513+
val data = Seq(("kitten", "sitting"), ("frog", "fog"), ("abc", "abc"), ("hello", "world"))
518514

519515
withParquetTable(data, "tbl") {
520516
checkSparkAnswerAndOperator("SELECT levenshtein(_1, _2, 2) FROM tbl")

0 commit comments

Comments
 (0)