diff options
author | Felix Cheung <felixcheung_m@hotmail.com> | 2016-09-02 10:28:37 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2016-09-02 10:28:37 -0700 |
commit | 419eefd811a4e29a73bc309157f150751e478db5 (patch) | |
tree | e5be7e3bc2dc54f7e44c800c2166656b0071eb24 | |
parent | 812333e4336113e44d2c9473bcba1cee4a989d2c (diff) | |
download | spark-419eefd811a4e29a73bc309157f150751e478db5.tar.gz spark-419eefd811a4e29a73bc309157f150751e478db5.tar.bz2 spark-419eefd811a4e29a73bc309157f150751e478db5.zip |
[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 <felixcheung_m@hotmail.com>
Closes #14934 from felixcheung/regexpextractdoc.
-rw-r--r-- | R/pkg/R/functions.R | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/R/pkg/R/functions.R b/R/pkg/R/functions.R index dbf8dd89a2..369b1d00d9 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. |