Uh oh!
There was an error while loading. Please reload this page.
[SPARK-25760][SQL] Set AddJarCommand return empty - #22747
Conversation
srowen
commented
Oct 16, 2018
I tend to agree, but I wonder if it returns a row with 0 to emulate something else like Hive? |
wangyum
commented
Oct 16, 2018
Hive will not return 0: 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> |
srowen
commented
Oct 16, 2018
Interesting, this was changed a long time ago, with the claim that it was needed to match Hive: #4586 (comment) Maybe it's changed again? CC @adrian-wang |
SparkQA
commented
Oct 16, 2018
Test build #97456 has finished for PR 22747 at commit
|
HyukjinKwon
left a comment
There was a problem hiding this comment.
I checked the Hive side code. I think its return code (that indicates the command was successful or not) is misunderstood. Looks not returning rows in Hive side and the current fix looks coherent to me.
dongjoon-hyun
commented
Oct 17, 2018
BTW, @wangyum . Please create a minor JIRA issue. This is a behavior change for users. cc @gatorsmile |
dongjoon-hyun
commented
Oct 18, 2018
Merged to master. |
This looks also external changes to existing application users. Shall we update migration guide? cc @cloud-fan and @gatorsmile |
srowen
commented
Oct 25, 2018
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. |
HyukjinKwon
commented
Oct 25, 2018
Yup, that's similar argument I had in #22773 (comment) I think we should clarify what to document there. |
srowen
commented
Oct 25, 2018
## 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 ```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 spark-sql> ``` Closesapache#22747 from wangyum/AddJarCommand. Authored-by: Yuming Wang <yumwang@ebay.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
Only
AddJarCommandreturn0, the user will be confused about what it means. This PR sets it to empty.How was this patch tested?
manual tests