zhengruifeng opened a new pull request #26999: [SPARK-29914][ML][FOLLOWUP] fix SQLTransformer & VectorSizeHint toString method URL: https://github.com/apache/spark/pull/26999 ### What changes were proposed in this pull request? 1,modify the toString in SQLTransformer & VectorSizeHint 2,add toString in RegexTokenizer ### Why are the changes needed? in SQLTransformer & VectorSizeHint , `toString` methods directly call getter of param without default values. This will cause `java.util.NoSuchElementException` in REPL: ```scala scala> val vs = new VectorSizeHint() java.util.NoSuchElementException: Failed to find a default value for size at org.apache.spark.ml.param.Params.$anonfun$getOrDefault$2(params.scala:780) at scala.Option.getOrElse(Option.scala:189) ``` ### Does this PR introduce any user-facing change? No ### How was this patch tested? existing testsuites
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
