@@ -755,9 +755,8 @@ class CometStringExpressionSuite extends CometTestBase {
755755 val table = " levenshtein_col_threshold_test"
756756 withTable(table) {
757757 sql(s " CREATE TABLE $table(s1 STRING, s2 STRING, threshold INT) USING parquet " )
758- sql(
759- s " INSERT INTO $table VALUES " +
760- " ('kitten', 'sitting', 2), ('frog', 'fog', 5), ('abc', 'abc', 0), ('hello', 'world', 3)" )
758+ sql(s " INSERT INTO $table VALUES " +
759+ " ('kitten', 'sitting', 2), ('frog', 'fog', 5), ('abc', 'abc', 0), ('hello', 'world', 3)" )
761760 // threshold as column reference
762761 checkSparkAnswerAndOperator(s " SELECT levenshtein(s1, s2, threshold) FROM $table" )
763762 }
@@ -768,9 +767,8 @@ class CometStringExpressionSuite extends CometTestBase {
768767 val table = " levenshtein_col_threshold_null_test"
769768 withTable(table) {
770769 sql(s " CREATE TABLE $table(s1 STRING, s2 STRING, threshold INT) USING parquet " )
771- sql(
772- s " INSERT INTO $table VALUES " +
773- " ('abc', 'adc', 2), ('hello', 'world', NULL), (NULL, 'test', 3), ('frog', 'fog', -1)" )
770+ sql(s " INSERT INTO $table VALUES " +
771+ " ('abc', 'adc', 2), ('hello', 'world', NULL), (NULL, 'test', 3), ('frog', 'fog', -1)" )
774772 // NULL threshold and NULL strings should produce NULL; negative threshold returns -1
775773 checkSparkAnswerAndOperator(s " SELECT levenshtein(s1, s2, threshold) FROM $table" )
776774 }
0 commit comments