Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/20495#discussion_r165855003
--- Diff: python/pyspark/sql/functions.py ---
@@ -1705,10 +1705,12 @@ def unhex(col):
@ignore_unicode_prefix
@since(1.5)
def length(col):
- """Calculates the length of a string or binary expression.
+ """Computes the character length of a given string or number of bytes
or a binary string.
+ The length of character strings include the trailing spaces. The
length of binary strings
--- End diff --
I ask because I want to understand this better to see if we should update R
https://github.com/apache/spark/blob/master/R/pkg/R/functions.R#L1029
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]