You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by wangyum <gi...@git.apache.org> on 2018/10/16 12:51:25 UTC

[GitHub] spark pull request #22747: [MINOR][SQL] Set AddJarCommand return empty

GitHub user wangyum opened a pull request:

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

    [MINOR][SQL] Set AddJarCommand return empty

    ## What changes were proposed in this pull request?
    
    Only `AddJarCommand` return `0`, the user will be confused about what it means. This PR sets it to empty.
    
    ```sql
    spark-sql> add jar /Users/yumwang/spark/sql/hive/src/test/resources/TestUDTF.jar;
    ADD JAR /Users/yumwang/spark/sql/hive/src/test/resources/TestUDTF.jar
    0
    spark-sql>
    ```
    
    ## How was this patch tested?
    
    manual tests


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

    $ git pull https://github.com/wangyum/spark AddJarCommand

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

    https://github.com/apache/spark/pull/22747.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 #22747
    
----
commit 0a5b0ddd6b17381b5ff9d2f0b4c437bdddd6c6a6
Author: Yuming Wang <yu...@...>
Date:   2018-10-16T12:36:13Z

    Fix AddJarCommand result

----


---

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


[GitHub] spark issue #22747: [MINOR][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    Hive will not return 0:
    ```sql
    hive> add jar /Users/yumwang/spark/sql/hive/src/test/resources/TestUDTF.jar;
    Added [/Users/yumwang/spark/sql/hive/src/test/resources/TestUDTF.jar] to class path
    Added resources: [/Users/yumwang/spark/sql/hive/src/test/resources/TestUDTF.jar]
    hive> 
    ```


---

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


[GitHub] spark issue #22747: [MINOR][SQL] Set AddJarCommand return empty

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

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


---

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


[GitHub] spark issue #22747: [MINOR][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    Interesting, this was changed a long time ago, with the claim that it was needed to match Hive: https://github.com/apache/spark/pull/4586#discussion_r28394029 Maybe it's changed again? CC @adrian-wang 


---

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


[GitHub] spark issue #22747: [MINOR][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    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 #22747: [SPARK-25760][SQL] Set AddJarCommand return empty

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

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


---

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


[GitHub] spark issue #22747: [SPARK-25760][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    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 #22747: [MINOR][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    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-unified/4034/
    Test PASSed.


---

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


[GitHub] spark issue #22747: [SPARK-25760][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    Yup, that's similar argument I had in https://github.com/apache/spark/pull/22773#issuecomment-432923361 I think we should clarify what to document there.


---

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


[GitHub] spark issue #22747: [SPARK-25760][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    It seems like a bug fix more than anything, and I assume we wouldn't document every single one, but don't object to mentioning it if that's more standard.


---

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


[GitHub] spark issue #22747: [MINOR][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    **[Test build #97456 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/97456/testReport)** for PR 22747 at commit [`0a5b0dd`](https://github.com/apache/spark/commit/0a5b0ddd6b17381b5ff9d2f0b4c437bdddd6c6a6).


---

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


[GitHub] spark issue #22747: [MINOR][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    BTW, @wangyum . Please create a minor JIRA issue. This is a behavior change for users.
    
    cc @gatorsmile 


---

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


[GitHub] spark issue #22747: [SPARK-25760][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    This looks also external changes to existing application users. Shall we update migration guide?


---

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


[GitHub] spark issue #22747: [MINOR][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    **[Test build #97456 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/97456/testReport)** for PR 22747 at commit [`0a5b0dd`](https://github.com/apache/spark/commit/0a5b0ddd6b17381b5ff9d2f0b4c437bdddd6c6a6).
     * 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 #22747: [MINOR][SQL] Set AddJarCommand return empty

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

    https://github.com/apache/spark/pull/22747
  
    I tend to agree, but I wonder if it returns a row with 0 to emulate something else like Hive?


---

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


[GitHub] spark issue #22747: [MINOR][SQL] Set AddJarCommand return empty

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

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


---

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