Github user visaxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/18477#discussion_r146457833
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/regexpExpressions.scala
---
@@ -268,7 +268,7 @@ case class StringSplit(str: Expression, pattern:
Expression)
usage = "_FUNC_(str, regexp, rep) - Replaces all substrings of `str`
that match `regexp` with `rep`.",
extended = """
Examples:
- > SELECT _FUNC_('100-200', '(\d+)', 'num');
+ > SELECT _FUNC_('100-200', '(\\d+)', 'num');
--- End diff --
I add spark-sql and scala to make it clear.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]