Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/20105#discussion_r159002733
--- Diff: R/pkg/R/functions.R ---
@@ -2777,11 +2815,11 @@ setMethod("rpad", signature(x = "Column", len =
"numeric", pad = "character"),
})
#' @details
-#' \code{substring_index}: Returns the substring from string str before
count occurrences of
-#' the delimiter delim. If count is positive, everything the left of the
final delimiter
-#' (counting from left) is returned. If count is negative, every to the
right of the final
-#' delimiter (counting from the right) is returned. substring_index
performs a case-sensitive
-#' match when searching for delim.
+#' \code{substring_index}: Returns the substring from string (\code{x})
before \code{count}
--- End diff --
this is mainly to fix the reference to `str` which doesn't exist here
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]