Repository: spark
Updated Branches:
  refs/heads/branch-2.0 29ac2f62e -> d4ae35d02


[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 <felixcheun...@hotmail.com>

Closes #14934 from felixcheung/regexpextractdoc.

(cherry picked from commit 419eefd811a4e29a73bc309157f150751e478db5)
Signed-off-by: Shivaram Venkataraman <shiva...@cs.berkeley.edu>


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

Branch: refs/heads/branch-2.0
Commit: d4ae35d02f92df407e54b65c2d6b48388448f031
Parents: 29ac2f6
Author: Felix Cheung <felixcheun...@hotmail.com>
Authored: Fri Sep 2 10:28:37 2016 -0700
Committer: Shivaram Venkataraman <shiva...@cs.berkeley.edu>
Committed: Fri Sep 2 10:28:57 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/d4ae35d0/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-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to