Github user phegstrom commented on a diff in the pull request: https://github.com/apache/spark/pull/22227#discussion_r212977742 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/regexpExpressions.scala --- @@ -232,30 +232,41 @@ case class RLike(left: Expression, right: Expression) extends StringRegexExpress * Splits str around pat (pattern is a regular expression). */ @ExpressionDescription( - usage = "_FUNC_(str, regex) - Splits `str` around occurrences that match `regex`.", + usage = "_FUNC_(str, regex, limit) - Splits `str` around occurrences that match `regex`." + + "The `limit` parameter controls the number of times the pattern is applied and " + --- End diff -- @rxin the underlying implementation of this method is Java.lang.String, correct? This method does allow non-positive values for `limit`, not sure what Presto is using. The text I've put here corresponds with the definition (rather long) from Java.lang.String.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org