You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by viirya <gi...@git.apache.org> on 2017/09/21 09:47:39 UTC

[GitHub] spark pull request #19304: [SPARK-22086][DOCS] Add expression description fo...

GitHub user viirya opened a pull request:

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

    [SPARK-22086][DOCS] Add expression description for CASE WHEN

    ## What changes were proposed in this pull request?
    
    In SQL conditional expressions, only CASE WHEN lacks for expression description. This patch fills the gap.
    
    ## How was this patch tested?
    
    Only documentation change.

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

    $ git pull https://github.com/viirya/spark-1 casewhen-doc

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

    https://github.com/apache/spark/pull/19304.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 #19304
    
----
commit 4f088d5f8219c81ab3fddbb283b24ab4e3a79c78
Author: Liang-Chi Hsieh <vi...@gmail.com>
Date:   2017-09-21T09:42:13Z

    Add expression description for CASE WHEN.

----


---

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


[GitHub] spark issue #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

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


---

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


[GitHub] spark issue #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

    https://github.com/apache/spark/pull/19304
  
    **[Test build #82026 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/82026/testReport)** for PR 19304 at commit [`4f088d5`](https://github.com/apache/spark/commit/4f088d5f8219c81ab3fddbb283b24ab4e3a79c78).


---

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


[GitHub] spark issue #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

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


---

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


[GitHub] spark pull request #19304: [SPARK-22086][DOCS] Add expression description fo...

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

    https://github.com/apache/spark/pull/19304#discussion_r140199523
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/conditionalExpressions.scala ---
    @@ -223,7 +223,22 @@ abstract class CaseWhenBase(
      */
     // scalastyle:off line.size.limit
     @ExpressionDescription(
    -  usage = "CASE WHEN expr1 THEN expr2 [WHEN expr3 THEN expr4]* [ELSE expr5] END - When `expr1` = true, returns `expr2`; when `expr3` = true, return `expr4`; else return `expr5`.")
    +  usage = "CASE WHEN expr1 THEN expr2 [WHEN expr3 THEN expr4]* [ELSE expr5] END - When `expr1` = true, returns `expr2`; else when `expr3` = true, return `expr4`; else return `expr5`.",
    --- End diff --
    
    Should `return` be `returns`?


---

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


[GitHub] spark issue #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

    https://github.com/apache/spark/pull/19304
  
    Merged to master.


---

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


[GitHub] spark issue #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

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


---

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


[GitHub] spark issue #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

    https://github.com/apache/spark/pull/19304
  
    A trivial doc change cc @HyukjinKwon 


---

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


[GitHub] spark issue #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

    https://github.com/apache/spark/pull/19304
  
    **[Test build #82031 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/82031/testReport)** for PR 19304 at commit [`e4615bb`](https://github.com/apache/spark/commit/e4615bb6d293f2096a4714eb2b16e7e91aa64751).
     * 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 #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

    https://github.com/apache/spark/pull/19304
  
    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 #19304: [SPARK-22086][DOCS] Add expression description fo...

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

    https://github.com/apache/spark/pull/19304#discussion_r140202433
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/conditionalExpressions.scala ---
    @@ -223,7 +223,22 @@ abstract class CaseWhenBase(
      */
     // scalastyle:off line.size.limit
     @ExpressionDescription(
    -  usage = "CASE WHEN expr1 THEN expr2 [WHEN expr3 THEN expr4]* [ELSE expr5] END - When `expr1` = true, returns `expr2`; when `expr3` = true, return `expr4`; else return `expr5`.")
    +  usage = "CASE WHEN expr1 THEN expr2 [WHEN expr3 THEN expr4]* [ELSE expr5] END - When `expr1` = true, returns `expr2`; else when `expr3` = true, return `expr4`; else return `expr5`.",
    --- End diff --
    
    It should be. I'll fix it. Thanks.


---

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


[GitHub] spark issue #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

    https://github.com/apache/spark/pull/19304
  
    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 #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

    https://github.com/apache/spark/pull/19304
  
    **[Test build #82026 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/82026/testReport)** for PR 19304 at commit [`4f088d5`](https://github.com/apache/spark/commit/4f088d5f8219c81ab3fddbb283b24ab4e3a79c78).
     * 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 #19304: [SPARK-22086][DOCS] Add expression description for CASE ...

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

    https://github.com/apache/spark/pull/19304
  
    Thanks @HyukjinKwon 


---

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


[GitHub] spark pull request #19304: [SPARK-22086][DOCS] Add expression description fo...

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

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


---

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