panbingkun commented on code in PR #41169: URL: https://github.com/apache/spark/pull/41169#discussion_r1196113962
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala: ########## @@ -2134,30 +2134,145 @@ case class OctetLength(child: Expression) * A function that return the Levenshtein distance between the two given strings. */ @ExpressionDescription( - usage = "_FUNC_(str1, str2) - Returns the Levenshtein distance between the two given strings.", + usage = """ + _FUNC_(str1, str2) - Returns the Levenshtein distance between the two given strings. + If threshold is set and distance more than it, return -1.""", Review Comment: ok -- 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]
