cloud-fan commented on code in PR #37154:
URL: https://github.com/apache/spark/pull/37154#discussion_r918719734


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/regexpExpressions.scala:
##########
@@ -1043,3 +1043,89 @@ case class RegExpSubStr(left: Expression, right: 
Expression)
       newChildren: IndexedSeq[Expression]): RegExpSubStr =
     copy(left = newChildren(0), right = newChildren(1))
 }
+
+// scalastyle:off line.size.limit
+@ExpressionDescription(
+  usage = """
+    _FUNC_(str, regexp) - Searches a string for a regular expression and 
returns an integer that indicates the beginning position matched substring. 
Positions are 1-based, not 0-based. If no match is found, returns 0.

Review Comment:
   ```suggestion
       _FUNC_(str, regexp) - Searches a string for a regular expression and 
returns an integer that indicates the beginning position of the matched 
substring. Positions are 1-based, not 0-based. If no match is found, returns 0.
   ```



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