Skip to content

Commit 9e97db9

Browse files
committed
address comments.
1 parent c33cc9a commit 9e97db9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

R/pkg/R/functions.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,9 @@ setMethod("last_day",
10261026
})
10271027

10281028
#' @details
1029-
#' \code{length}: Computes the length of a given string or binary column.
1029+
#' \code{length}: Computes the character length of a given string or number of bytes
1030+
#' of a binary string. The length of character strings include the trailing spaces.
1031+
#' The length of binary strings includes binary zeros.
10301032
#'
10311033
#' @rdname column_string_functions
10321034
#' @aliases length length,Column-method

python/pyspark/sql/functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ def unhex(col):
17051705
@ignore_unicode_prefix
17061706
@since(1.5)
17071707
def length(col):
1708-
"""Computes the character length of a given string or number of bytes or a binary string.
1708+
"""Computes the character length of a given string or number of bytes of a binary string.
17091709
The length of character strings include the trailing spaces. The length of binary strings
17101710
includes binary zeros.
17111711

sql/core/src/main/scala/org/apache/spark/sql/functions.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,7 @@ object functions {
22672267
}
22682268

22692269
/**
2270-
* Computes the character length of a given string or number of bytes or a binary string.
2270+
* Computes the character length of a given string or number of bytes of a binary string.
22712271
* The length of character strings include the trailing spaces. The length of binary strings
22722272
* includes binary zeros.
22732273
*

0 commit comments

Comments
 (0)