spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [SQL][DOC] Fix documentation of lpad
Date Thu, 22 Jun 2017 09:12:47 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-2.2 6ef7a5bd3 -> d62573471


[SQL][DOC] Fix documentation of lpad

## What changes were proposed in this pull request?
Fix incomplete documentation for `lpad`.

Author: actuaryzhang <actuaryzhang10@gmail.com>

Closes #18367 from actuaryzhang/SQLDoc.

(cherry picked from commit 97b307c87c0f262ea3e020bf3d72383deef76619)
Signed-off-by: Sean Owen <sowen@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d6257347
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d6257347
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d6257347

Branch: refs/heads/branch-2.2
Commit: d6257347122abd86f8c36e54a446e05c95615d69
Parents: 6ef7a5b
Author: actuaryzhang <actuaryzhang10@gmail.com>
Authored: Thu Jun 22 10:12:33 2017 +0100
Committer: Sean Owen <sowen@cloudera.com>
Committed: Thu Jun 22 10:12:42 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/d6257347/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 74e9560..067b6d5 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: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message