-
Notifications
You must be signed in to change notification settings - Fork 369
[AMORO-3851] Separate spark-3.3 and spark-3.5 modules #3848
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
| ExpressionEncoder encoder = (ExpressionEncoder) rowApplyMethod.invoke(null, structType); | ||
| return encoder.createSerializer().apply(row); | ||
| } catch (Throwable e) { | ||
| throw new RuntimeException(e); |
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.
this is a temporary workaround to support different Spark versions
1fcd213 to
0f73351
Compare
4838208 to
4e7226b
Compare
I also tried compiling it with JDK 17 before. From what I remember, the issue might be caused by inconsistencies in how different JDK versions serialize certain Java classes. |
c50284b to
0e2f726
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3848 +/- ##
============================================
- Coverage 29.00% 28.82% -0.18%
+ Complexity 3850 3838 -12
============================================
Files 631 625 -6
Lines 50770 50514 -256
Branches 6543 6455 -88
============================================
- Hits 14724 14561 -163
+ Misses 34989 34927 -62
+ Partials 1057 1026 -31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1ffccde to
0cc3a46
Compare
|
cc @xxubai @zhoujinsong |

Why are the changes needed?
Close #3851
Brief change log
Currently, it is not user friendly for developer to mix the spark-3.3 and spark-3.5 modules.
It is hard to build the modules for different spark modules together.
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation