@@ -3012,15 +3012,15 @@ setMethod("array_contains",
30123012# ' \code{array_join}: Concatenates the elements of column using the delimiter.
30133013# ' Null values are replaced with nullReplacement if set, otherwise they are ignored.
30143014# '
3015- # ' @param delimiter character(s) to use to concatenate the elements of column.
3016- # ' @param nullReplacement character(s) to use to replace the Null values.
3015+ # ' @param delimiter a character string that is used to concatenate the elements of column.
3016+ # ' @param nullReplacement a character string that is used to replace the Null values.
30173017# ' @rdname column_collection_functions
30183018# ' @aliases array_join array_join,Column-method
30193019# ' @note array_join since 2.4.0
30203020setMethod ("array_join ",
3021- signature(x = " Column" ),
3022- function (x , delimiter , nullReplacement = NA ) {
3023- jc <- if (is.na (nullReplacement )) {
3021+ signature(x = " Column" , delimiter = " character " ),
3022+ function (x , delimiter , nullReplacement = NULL ) {
3023+ jc <- if (is.null (nullReplacement )) {
30243024 callJStatic(" org.apache.spark.sql.functions" , " array_join" , x @ jc , delimiter )
30253025 } else {
30263026 callJStatic(" org.apache.spark.sql.functions" , " array_join" , x @ jc , delimiter ,
0 commit comments