Uh oh!
There was an error while loading. Please reload this page.
HIVE-23980: Shade Guava from hive-exec in Hive 2.3 - #1356
Conversation
viirya
commented
Aug 4, 2020
cc @sunchao |
Uh oh!
There was an error while loading. Please reload this page.
viirya
commented
Aug 6, 2020
@sunchao Do you know how to trigger the tests? |
viirya
commented
Aug 18, 2020
@sunchao Thanks for merging it in branch-2. Does this also need to be merged? Or just close it? |
sunchao
commented
Aug 18, 2020
@viirya sorry for the delay - I've cherry-picked the change to branch-2.3 as well so you can just close this. |
viirya
commented
Aug 18, 2020
Ok, thanks @sunchao |
viirya
commented
Sep 24, 2020
Thanks @sunchao for adding jenkins file to branch-2.3. Re-open this. |
Reverting the previous approval since it has some issue
viirya
commented
Nov 18, 2020
@sunchao The CI test results look much better now. Seems to me the failed tests are not related to shading guava. |
sunchao
commented
Nov 18, 2020
Thanks @viirya . Yes agree they do not look like related. I re-triggered CI just to be sure. |
viirya
commented
Nov 30, 2020
Internally we test this patch and pass all Spark tests. I think it gives us more confidence to have this. |
There was a problem hiding this comment.
Thanks @viirya ! the new PR looks almost good to me except one nit.
Also comparing to the original patch, we don't have changes to HiveRelDecorrelator, HiveAggregate and HiveSubQueryRemoveRule. This is unnecessary because we've shaded Guava within hive-exec? (some of the APIs like operandJ do not exist in the Calcite version used by branch-2.3 also).
Uh oh!
There was an error while loading. Please reload this page.
viirya
commented
Nov 30, 2020
The change to The change from |
sunchao
commented
Dec 1, 2020
Yes, my main question is whether it is safe to skip the changes on |
viirya
commented
Dec 1, 2020
Yeah, it should be fine. Calcite uses guava API so shading guava causes no method error if we don't include calcite in shaded jar of hive/ql. |
viirya
commented
Dec 1, 2020
Thank you @sunchao. I think this is ready to go, or we need to wait for a couple days? |
sunchao
commented
Dec 1, 2020
Merged to branch-2.3 and branch-2. Thanks @viirya . |
viirya
commented
Dec 1, 2020
Thank you @sunchao |
What changes were proposed in this pull request?
This PR proposes to shade Guava from hive-exec in Hive 2.3 branch.
Why are the changes needed?
When trying to upgrade Guava in Spark, found the following error. A Guava method became package-private since Guava version 20. So there is incompatibility with Guava versions > 19.0.
This is a problem for downstream clients. Hive project noticed that problem too in HIVE-22126, however that only targets 4.0.0. It'd be nicer if we can also shade Guava from current Hive versions, e.g. Hive 2.3 line.
Does this PR introduce any user-facing change?
Yes. Guava will be shaded from hive-exec.
How was this patch tested?
Built Hive locally and checked jar content.