Skip to content

Commit

Permalink
Remove comma after the last element in Seq
Browse files Browse the repository at this point in the history
  • Loading branch information
miland-db committed Mar 21, 2024
1 parent fd299f9 commit 9c0451c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class CollationStringExpressionsSuite extends QueryTest with SharedSparkSession
RepeatCollationTestCase("Spark", 2, "UTF8_BINARY", "SparkSpark"),
RepeatCollationTestCase("Spark", 2, "UTF8_BINARY_LCASE", "SparkSpark"),
RepeatCollationTestCase("Spark", 2, "UNICODE", "SparkSpark"),
RepeatCollationTestCase("Spark", 2, "UNICODE_CI", "SparkSpark"),
RepeatCollationTestCase("Spark", 2, "UNICODE_CI", "SparkSpark")
)
checksRepeat.foreach(ct => {
checkAnswer(sql(s"SELECT repeat(collate('${ct.s}', '${ct.collation}'), ${ct.n})"),
Expand All @@ -91,7 +91,7 @@ class CollationStringExpressionsSuite extends QueryTest with SharedSparkSession
RepeatCollationTestCase("Spark", 2, "UTF8_BINARY", "UTF8_BINARY"),
RepeatCollationTestCase("Spark", 2, "UTF8_BINARY_LCASE", "UTF8_BINARY_LCASE"),
RepeatCollationTestCase("Spark", 2, "UNICODE", "UNICODE"),
RepeatCollationTestCase("Spark", 2, "UNICODE_CI", "UNICODE_CI"),
RepeatCollationTestCase("Spark", 2, "UNICODE_CI", "UNICODE_CI")
)
checksReturnType.foreach(ct => {
checkAnswer(sql(s"SELECT collation(repeat(collate('${ct.s}', '${ct.collation}'), ${ct.n}))"),
Expand Down

0 comments on commit 9c0451c

Please sign in to comment.