Repository: spark Updated Branches: refs/heads/master 67c75021c -> 97b307c87
[SQL][DOC] Fix documentation of lpad ## What changes were proposed in this pull request? Fix incomplete documentation for `lpad`. Author: actuaryzhang <[email protected]> Closes #18367 from actuaryzhang/SQLDoc. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/97b307c8 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/97b307c8 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/97b307c8 Branch: refs/heads/master Commit: 97b307c87c0f262ea3e020bf3d72383deef76619 Parents: 67c7502 Author: actuaryzhang <[email protected]> Authored: Thu Jun 22 10:12:33 2017 +0100 Committer: Sean Owen <[email protected]> Committed: Thu Jun 22 10:12:33 2017 +0100 ---------------------------------------------------------------------- sql/core/src/main/scala/org/apache/spark/sql/functions.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/97b307c8/sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---------------------------------------------------------------------- diff --git a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala index 9a35a5c..839cbf4 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala @@ -2292,7 +2292,8 @@ object functions { } /** - * Left-pad the string column with + * Left-pad the string column with pad to a length of len. If the string column is longer + * than len, the return value is shortened to len characters. * * @group string_funcs * @since 1.5.0 @@ -2350,7 +2351,8 @@ object functions { def unbase64(e: Column): Column = withExpr { UnBase64(e.expr) } /** - * Right-padded with pad to a length of len. + * Right-pad the string column with pad to a length of len. If the string column is longer + * than len, the return value is shortened to len characters. * * @group string_funcs * @since 1.5.0 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
