File tree 3 files changed +5
-3
lines changed
sql/core/src/main/scala/org/apache/spark/sql
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1026,7 +1026,9 @@ setMethod("last_day",
1026
1026
})
1027
1027
1028
1028
# ' @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.
1030
1032
# '
1031
1033
# ' @rdname column_string_functions
1032
1034
# ' @aliases length length,Column-method
Original file line number Diff line number Diff line change @@ -1705,7 +1705,7 @@ def unhex(col):
1705
1705
@ignore_unicode_prefix
1706
1706
@since (1.5 )
1707
1707
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.
1709
1709
The length of character strings include the trailing spaces. The length of binary strings
1710
1710
includes binary zeros.
1711
1711
Original file line number Diff line number Diff line change @@ -2267,7 +2267,7 @@ object functions {
2267
2267
}
2268
2268
2269
2269
/**
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.
2271
2271
* The length of character strings include the trailing spaces. The length of binary strings
2272
2272
* includes binary zeros.
2273
2273
*
You can’t perform that action at this time.
0 commit comments