-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-37446][SQL] Use reflection for getWithoutRegisterFns to allow different Hive versions for building #34690
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 #145542 has finished for PR 34690 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test starting |
|
Test build #145543 has finished for PR 34690 at commit
|
|
Kubernetes integration test status failure |
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.
@AngersZhuuuu, how did you test this? Can you share the command for build, and show that the build succeeded?
With command I make this change since many user will build spark with it's own hive code and their own jar (they may do some optimize or. other thing in their own code). This pr make it easier to integrate and won't hurt current logic. |
|
Let's fill up "How was this patch tested?" in the PR description. |
Updated desc |
sunchao
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.
LGTM, thanks @AngersZhuuuu !
|
Merged to master and branch-3.2. |
…different Hive versions for building ### What changes were proposed in this pull request? Since Hive 2.3.9 start have function `getWithoutRegisterFns`, but user may use hive 2.3.8 or lower version. Here we should use reflection to let user build with hive 2.3.8 or lower version ### Why are the changes needed? Support build with hive version lower than 2.3.9 since many user will build spark with it 's own hive code and their own jar (they may do some optimize or. other thing in their own code). This pr make it easier to integrate and won't hurt current logic. ### Does this PR introduce _any_ user-facing change? User can build spark with hive version lower than 2.3.9 ### How was this patch tested? build with command ``` ./dev/make-distribution.sh --tgz -Pyarn -Phive -Phive-thriftserver -Dhive.version=2.3.8 ``` Jars under dist  Closes #34690 from AngersZhuuuu/SPARK-37446. Authored-by: Angerszhuuuu <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]> (cherry picked from commit 04671bd) Signed-off-by: Hyukjin Kwon <[email protected]>
…different Hive versions for building ### What changes were proposed in this pull request? Since Hive 2.3.9 start have function `getWithoutRegisterFns`, but user may use hive 2.3.8 or lower version. Here we should use reflection to let user build with hive 2.3.8 or lower version ### Why are the changes needed? Support build with hive version lower than 2.3.9 since many user will build spark with it 's own hive code and their own jar (they may do some optimize or. other thing in their own code). This pr make it easier to integrate and won't hurt current logic. ### Does this PR introduce _any_ user-facing change? User can build spark with hive version lower than 2.3.9 ### How was this patch tested? build with command ``` ./dev/make-distribution.sh --tgz -Pyarn -Phive -Phive-thriftserver -Dhive.version=2.3.8 ``` Jars under dist  Closes apache#34690 from AngersZhuuuu/SPARK-37446. Authored-by: Angerszhuuuu <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]> (cherry picked from commit 04671bd) Signed-off-by: Hyukjin Kwon <[email protected]>
…different Hive versions for building ### What changes were proposed in this pull request? Since Hive 2.3.9 start have function `getWithoutRegisterFns`, but user may use hive 2.3.8 or lower version. Here we should use reflection to let user build with hive 2.3.8 or lower version ### Why are the changes needed? Support build with hive version lower than 2.3.9 since many user will build spark with it 's own hive code and their own jar (they may do some optimize or. other thing in their own code). This pr make it easier to integrate and won't hurt current logic. ### Does this PR introduce _any_ user-facing change? User can build spark with hive version lower than 2.3.9 ### How was this patch tested? build with command ``` ./dev/make-distribution.sh --tgz -Pyarn -Phive -Phive-thriftserver -Dhive.version=2.3.8 ``` Jars under dist  Closes apache#34690 from AngersZhuuuu/SPARK-37446. Authored-by: Angerszhuuuu <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]> (cherry picked from commit 04671bd) Signed-off-by: Hyukjin Kwon <[email protected]>
…different Hive versions for building ### What changes were proposed in this pull request? Since Hive 2.3.9 start have function `getWithoutRegisterFns`, but user may use hive 2.3.8 or lower version. Here we should use reflection to let user build with hive 2.3.8 or lower version ### Why are the changes needed? Support build with hive version lower than 2.3.9 since many user will build spark with it 's own hive code and their own jar (they may do some optimize or. other thing in their own code). This pr make it easier to integrate and won't hurt current logic. ### Does this PR introduce _any_ user-facing change? User can build spark with hive version lower than 2.3.9 ### How was this patch tested? build with command ``` ./dev/make-distribution.sh --tgz -Pyarn -Phive -Phive-thriftserver -Dhive.version=2.3.8 ``` Jars under dist  Closes apache#34690 from AngersZhuuuu/SPARK-37446. Authored-by: Angerszhuuuu <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]> (cherry picked from commit 04671bd) Signed-off-by: Hyukjin Kwon <[email protected]>

What changes were proposed in this pull request?
Since Hive 2.3.9 start have function
getWithoutRegisterFns, but user may use hive 2.3.8 or lower version.Here we should use reflection to let user build with hive 2.3.8 or lower version
Why are the changes needed?
Support build with hive version lower than 2.3.9 since many user will build spark with it 's own hive code and their own jar (they may do some optimize or. other thing in their own code). This pr make it easier to integrate and won't hurt current logic.
Does this PR introduce any user-facing change?
User can build spark with hive version lower than 2.3.9
How was this patch tested?
build with command
Jars under dist
