LuciferYang opened a new pull request, #37212:
URL: https://github.com/apache/spark/pull/37212

   ### What changes were proposed in this pull request?
   This pr just use `LevenshteinDistance` in `commons-text` instead of 
`StringUtils.getLevenshteinDistance` in `commons-lang3` to cleanup following 
compilation warnings:
   
   ```
   [WARNING] 
/basedi/spark-source/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/StringUtils.scala:79:
 [deprecation @ 
org.apache.spark.sql.catalyst.util.StringUtils.orderStringsBySimilarity.$anonfun
 | origin=org.apache.commons.lang3.StringUtils.getLevenshteinDistance | 
version=] method getLevenshteinDistance in class StringUtils is deprecated
   ```
   
   
   ### Why are the changes needed?
   Cleanup deprecation api usage related  to `commons-lang3`, only this one 
case.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Pass GitHub Actions


-- 
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]

Reply via email to