-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-25760][SQL] Set AddJarCommand return empty #22747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I tend to agree, but I wonder if it returns a row with 0 to emulate something else like Hive? |
|
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> |
|
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 |
|
Test build #97456 has finished for PR 22747 at commit
|
HyukjinKwon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM, too.
|
BTW, @wangyum . Please create a minor JIRA issue. This is a behavior change for users. cc @gatorsmile |
|
Merged to master. |
|
This looks also external changes to existing application users. Shall we update migration guide? cc @cloud-fan and @gatorsmile |
|
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. |
|
Yup, that's similar argument I had in #22773 (comment) I think we should clarify what to document there. |
## 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> ``` Closes apache#22747 from wangyum/AddJarCommand. Authored-by: Yuming Wang <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
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