Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit d625734

Browse files
actuaryzhangsrowen
authored andcommitted
[SQL][DOC] Fix documentation of lpad
## What changes were proposed in this pull request? Fix incomplete documentation for `lpad`. Author: actuaryzhang <[email protected]> Closes apache#18367 from actuaryzhang/SQLDoc. (cherry picked from commit 97b307c) Signed-off-by: Sean Owen <[email protected]>
1 parent 6ef7a5b commit d625734

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,8 @@ object functions {
22922292
}
22932293

22942294
/**
2295-
* Left-pad the string column with
2295+
* Left-pad the string column with pad to a length of len. If the string column is longer
2296+
* than len, the return value is shortened to len characters.
22962297
*
22972298
* @group string_funcs
22982299
* @since 1.5.0
@@ -2350,7 +2351,8 @@ object functions {
23502351
def unbase64(e: Column): Column = withExpr { UnBase64(e.expr) }
23512352

23522353
/**
2353-
* Right-padded with pad to a length of len.
2354+
* Right-pad the string column with pad to a length of len. If the string column is longer
2355+
* than len, the return value is shortened to len characters.
23542356
*
23552357
* @group string_funcs
23562358
* @since 1.5.0

0 commit comments

Comments
 (0)