You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sh...@apache.org on 2016/09/02 17:28:43 UTC

spark git commit: [SPARKR][DOC] regexp_extract should doc that it returns empty string when match fails

Repository: spark
Updated Branches:
  refs/heads/master 812333e43 -> 419eefd81


[SPARKR][DOC] regexp_extract should doc that it returns empty string when match fails

## What changes were proposed in this pull request?

Doc change - see https://issues.apache.org/jira/browse/SPARK-16324

## How was this patch tested?

manual check

Author: Felix Cheung <fe...@hotmail.com>

Closes #14934 from felixcheung/regexpextractdoc.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/419eefd8
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/419eefd8
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/419eefd8

Branch: refs/heads/master
Commit: 419eefd811a4e29a73bc309157f150751e478db5
Parents: 812333e
Author: Felix Cheung <fe...@hotmail.com>
Authored: Fri Sep 2 10:28:37 2016 -0700
Committer: Shivaram Venkataraman <sh...@cs.berkeley.edu>
Committed: Fri Sep 2 10:28:37 2016 -0700

----------------------------------------------------------------------
 R/pkg/R/functions.R | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/419eefd8/R/pkg/R/functions.R
----------------------------------------------------------------------
diff --git a/R/pkg/R/functions.R b/R/pkg/R/functions.R
index dbf8dd8..369b1d0 100644
--- a/R/pkg/R/functions.R
+++ b/R/pkg/R/functions.R
@@ -2876,7 +2876,8 @@ setMethod("randn", signature(seed = "numeric"),
 
 #' regexp_extract
 #'
-#' Extract a specific(idx) group identified by a java regex, from the specified string column.
+#' Extract a specific \code{idx} group identified by a Java regex, from the specified string column.
+#' If the regex did not match, or the specified group did not match, an empty string is returned.
 #'
 #' @param x a string Column.
 #' @param pattern a regular expression.


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