stefankandic commented on code in PR #45963:
URL: https://github.com/apache/spark/pull/45963#discussion_r1559327591
##########
sql/core/src/test/scala/org/apache/spark/sql/CollationStringExpressionsSuite.scala:
##########
@@ -89,6 +89,73 @@ class CollationStringExpressionsSuite
testRepeat("UNICODE_CI", 3, "abc", 2)
}
+ test("Levenshtein expressions with collation") {
+ def prepareLevenshtein(
+ left: String,
+ right: String,
+ collation: String): Levenshtein = {
+ val collationId = CollationFactory.collationNameToId(collation)
+ val leftLit = Literal.create(left, StringType(collationId))
+ val rightLit = Literal.create(right, StringType(collationId))
+ Levenshtein(leftLit, rightLit)
+ }
+
+ Seq(
+ // scalastyle:off nonascii
Review Comment:
there's a good chance we will use nonascii characters a lot in this file,
what about disabling this for the entire class/file?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]