You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by gatorsmile <gi...@git.apache.org> on 2018/02/03 07:33:29 UTC

[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description of thr...

GitHub user gatorsmile opened a pull request:

    https://github.com/apache/spark/pull/20495

    [SPARK-23327] [SQL] Update the description of three external API or functions

    ## What changes were proposed in this pull request?
    Update the description of three external API or functions `createFunction `, `length` and `repartitionByRange `
    
    ## How was this patch tested?
    N/A

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gatorsmile/spark updateFunc

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/20495.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #20495
    
----
commit 48f552cb087b0f8e3a87d43191450474734cae06
Author: gatorsmile <ga...@...>
Date:   2018-02-03T04:35:59Z

    update create function.

commit 21ea233b6ef44bac4aefe13ae9014badac3450b1
Author: gatorsmile <ga...@...>
Date:   2018-02-03T06:51:03Z

    update the comment for repartitionByRange

commit 9ecc809056800058cc95a1341fd9b85fa247867f
Author: gatorsmile <ga...@...>
Date:   2018-02-03T07:24:08Z

    update the comment of length

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87124 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87124/testReport)** for PR 20495 at commit [`b837053`](https://github.com/apache/spark/commit/b83705367b15c16b7208ea24085e063760770caa).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description and te...

Posted by felixcheung <gi...@git.apache.org>.
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: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    retest this please


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87026 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87026/testReport)** for PR 20495 at commit [`9ecc809`](https://github.com/apache/spark/commit/9ecc809056800058cc95a1341fd9b85fa247867f).
     * This patch **fails to build**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87027/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description of thr...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20495#discussion_r165819296
  
    --- 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
    +    includes binary zeros.
     
    -    >>> spark.createDataFrame([('ABC',)], ['a']).select(length('a').alias('length')).collect()
    -    [Row(length=3)]
    +    >>> spark.createDataFrame([('ABC ',)], ['a']).select(length('a').alias('length')).collect()
    --- End diff --
    
    Actually, not only `description`, this PR improves the test coverage and refactos the code, too.
    Could you update the PR description/title more correctly?
    Otherwise, we had better split this PR according to @rdblue 's recommendations in our dev thread.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/606/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87091 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87091/testReport)** for PR 20495 at commit [`9e97db9`](https://github.com/apache/spark/commit/9e97db9da89c9d9f8bb467eb025239041b3231db).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87085 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87085/testReport)** for PR 20495 at commit [`9e97db9`](https://github.com/apache/spark/commit/9e97db9da89c9d9f8bb467eb025239041b3231db).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87085 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87085/testReport)** for PR 20495 at commit [`9e97db9`](https://github.com/apache/spark/commit/9e97db9da89c9d9f8bb467eb025239041b3231db).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description and te...

Posted by rdblue <gi...@git.apache.org>.
Github user rdblue commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20495#discussion_r166358420
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala ---
    @@ -1655,15 +1655,17 @@ case class Left(str: Expression, len: Expression, child: Expression) extends Run
      */
     // scalastyle:off line.size.limit
     @ExpressionDescription(
    -  usage = "_FUNC_(expr) - Returns the character length of `expr` or number of bytes in binary data.",
    +  usage = "_FUNC_(expr) - Returns the character length of `expr` or number of bytes in binary data. " +
    --- End diff --
    
    +1 for string data / binary data


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description and te...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20495#discussion_r165821762
  
    --- 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
    +    includes binary zeros.
     
    -    >>> spark.createDataFrame([('ABC',)], ['a']).select(length('a').alias('length')).collect()
    -    [Row(length=3)]
    +    >>> spark.createDataFrame([('ABC ',)], ['a']).select(length('a').alias('length')).collect()
    --- End diff --
    
    Done


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description and te...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20495#discussion_r165854982
  
    --- 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 --
    
    as a side note, why is it calling out trailing spaces? what about leading spaces? isn't all spaces factored into the character length?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87027 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87027/testReport)** for PR 20495 at commit [`c33cc9a`](https://github.com/apache/spark/commit/c33cc9af13cfe5daf193c23a31f9f97bdda463b4).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    LGTM


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    retest this please


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87081/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87026 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87026/testReport)** for PR 20495 at commit [`9ecc809`](https://github.com/apache/spark/commit/9ecc809056800058cc95a1341fd9b85fa247867f).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    cc @srinathshankar @rxin @cloud-fan 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87081 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87081/testReport)** for PR 20495 at commit [`9e97db9`](https://github.com/apache/spark/commit/9e97db9da89c9d9f8bb467eb025239041b3231db).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description and te...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20495#discussion_r166196777
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala ---
    @@ -1655,15 +1655,17 @@ case class Left(str: Expression, len: Expression, child: Expression) extends Run
      */
     // scalastyle:off line.size.limit
     @ExpressionDescription(
    -  usage = "_FUNC_(expr) - Returns the character length of `expr` or number of bytes in binary data.",
    +  usage = "_FUNC_(expr) - Returns the character length of `expr` or number of bytes in binary data. " +
    --- End diff --
    
    why are other places use "binary string" and here we have "binary data"?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description and te...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20495#discussion_r165928335
  
    --- 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.
    --- End diff --
    
    `number of bytes of a binary value`?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/560/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87124 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87124/testReport)** for PR 20495 at commit [`b837053`](https://github.com/apache/spark/commit/b83705367b15c16b7208ea24085e063760770caa).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description and te...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/20495


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/561/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description and te...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20495#discussion_r166205775
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala ---
    @@ -1655,15 +1655,17 @@ case class Left(str: Expression, len: Expression, child: Expression) extends Run
      */
     // scalastyle:off line.size.limit
     @ExpressionDescription(
    -  usage = "_FUNC_(expr) - Returns the character length of `expr` or number of bytes in binary data.",
    +  usage = "_FUNC_(expr) - Returns the character length of `expr` or number of bytes in binary data. " +
    --- End diff --
    
    We should be consistent, either `character string` vs `binary string`, or `string data` vs `binary data`.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87026/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Thanks! Merged to master/2.3


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/603/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/638/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87085/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/612/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87091 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87091/testReport)** for PR 20495 at commit [`9e97db9`](https://github.com/apache/spark/commit/9e97db9da89c9d9f8bb467eb025239041b3231db).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87091/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20495: [SPARK-23327] [SQL] Update the description and te...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20495#discussion_r165855729
  
    --- 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 --
    
    The reason is `LEN` in MS SQL Server excludes trailing blanks. : )
    
    Yeah. This PR also can updates it in R side too. 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description of three exte...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87027 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87027/testReport)** for PR 20495 at commit [`c33cc9a`](https://github.com/apache/spark/commit/c33cc9af13cfe5daf193c23a31f9f97bdda463b4).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    **[Test build #87081 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87081/testReport)** for PR 20495 at commit [`9e97db9`](https://github.com/apache/spark/commit/9e97db9da89c9d9f8bb467eb025239041b3231db).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20495: [SPARK-23327] [SQL] Update the description and tests of ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20495
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87124/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org