Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/21313#discussion_r187810848
--- Diff: R/pkg/R/functions.R ---
@@ -3006,6 +3008,28 @@ setMethod("array_contains",
column(jc)
})
+#' @details
+#' \code{array_join}: Concatenates the elements of column using the
delimiter.
+#' Null values are replaced with null_replacement if set, otherwise they
are ignored.
+#'
+#' @param delimiter character(s) to use to concatenate the elements of
column.
+#' @param null_replacement character(s) to use to replace the Null values.
+#' @rdname column_collection_functions
+#' @aliases array_join array_join,Column-method
+#' @note array_join since 2.4.0
+setMethod("array_join",
+ signature(x = "Column"),
+ function(x, delimiter, null_replacement = NA) {
--- End diff --
generally we don't use `_` in variable name in R. what's the variable name
in Scala?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]