You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/01/25 10:46:41 UTC

[GitHub] [spark] asmello commented on a change in pull request #31306: [SPARK-34214][SQL][PYTHON] Expose regexp_extract_all in PySpark

asmello commented on a change in pull request #31306:
URL: https://github.com/apache/spark/pull/31306#discussion_r563626366



##########
File path: python/pyspark/sql/functions.py
##########
@@ -2776,6 +2787,40 @@ def regexp_extract(str, pattern, idx):
     return Column(jc)
 
 
+def regexp_extract_all(str, pattern, idx):
+    r"""Extract all matches of the given group in a regex, from the specified string column.
+    If the regex did not match, or the specified group did not match, an empty array is returned.
+
+    .. versionadded:: 3.1.0

Review comment:
       Oh, I thought this was the version where the Scala function was introduced. Changed.




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org