-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-5794] [SQL] fix add jar #4586
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
|
Test build #27427 has finished for PR 4586 at commit
|
|
Test build #27428 has finished for PR 4586 at commit
|
|
This is because Jenkins do not have hcatalog.jar at /home/jenkins/.m2/repository/org/apache/hive/hcatalog/hive-hcatalog-core/0.13.1/hive-hcatalog-core-0.13.1.jar I can remove the test from white list if the rest of this PR looks good. |
|
I also found this issue, I fetched your branch and when I ran |
|
@watermen , I re-compiled and it can step into that. |
|
@adrian-wang, you mean it can step into |
|
If you are using HiveContext, it will step into the else branch, and trigger by |
|
@adrian-wang yeah, I'm using HiveContext, and threw |
|
@waterman do you have that jar in your maven local repository then? |
|
just rebased twice... |
|
@adrian-wang I'm running the sql in spark-sql shell, and use |
|
@watermen there must be something wrong. I just did a clean pick and verified that this works well. You may need to clean and rebuild your assembly jar. |
|
@watermen Ah, I think I know what's wrong now. I'll fix that, thanks for your reminding! |
|
@adrian-wang Look forward to your commit. |
|
Test build #28221 has finished for PR 4586 at commit
|
|
Test build #28223 has finished for PR 4586 at commit
|
|
Test build #28222 has finished for PR 4586 at commit
|
|
Test build #28225 has finished for PR 4586 at commit
|
|
@adrian-wang I try |
|
@adrian-wang I think |
|
@watermen I have test my code this time and it should work. I'm trying to figure out where the problem lies, can you try this code first? |
|
Test build #28275 has finished for PR 4586 at commit
|
|
@adrian-wang I test it and it works. |
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.
There is a SerDe jar at sql/hive/src/test/resources/data/files/TestSerDe.jar , Instead of whitelisting the mapjoin_addjar in HiveCompatibilitySuite.scala, we can create a new unit test in HiveQuerySuite for simplifying the unit testing. As setting the local maven repo like this seems a little bit hacky to me, it probably doesn't work if people modify the default location or the jar hive-hcatalog-core-*.jar doesn't exist in some cases.
|
LGTM |
|
greate feature! |
|
Test build #29600 has finished for PR 4586 at commit
|
|
Test build #29840 has finished for PR 4586 at commit
|
|
Test build #29847 has finished for PR 4586 at commit
|
|
Test build #29845 has finished for PR 4586 at commit
|
|
retest this please. |
|
Test build #29851 has finished for PR 4586 at commit
|
|
ping. |
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.
Could you put this jar somewhere else? The stuff inside of resources/data are often replaced completely with files from hive. Perhaps just in the top level resources dir.
|
Test build #29916 has finished for PR 4586 at commit
|
|
ping @marmbrus |
1 similar comment
|
ping @marmbrus |
|
Thanks, merged to master. |
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.
@adrian-wang Why we need a Row with a value of 0 at here?
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.
Hive would return a 0 for add jar command.
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 thought it may be better to comment at the original pr).
OK, I see. In future, let's make sure we also update the output if the result of a command is not an empty Seq (#5350 will change the schema for AddJar).
No description provided.