Skip to content

Conversation

@turboFei
Copy link
Member

@turboFei turboFei commented Oct 31, 2025

Why are the changes needed?

Close #3851

Brief change log

  • separate modules for spark-3.3 and spark-3.5

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

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@github-actions github-actions bot added module:mixed-spark Spark module for Mixed Format module:ams-server Ams server module type:build labels Oct 31, 2025
@turboFei turboFei marked this pull request as draft October 31, 2025 00:40
ExpressionEncoder encoder = (ExpressionEncoder) rowApplyMethod.invoke(null, structType);
return encoder.createSerializer().apply(row);
} catch (Throwable e) {
throw new RuntimeException(e);
Copy link
Member Author

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

@turboFei turboFei marked this pull request as ready for review October 31, 2025 00:53
@turboFei turboFei force-pushed the separate_spark3.3_3.5 branch from 1fcd213 to 0f73351 Compare October 31, 2025 01:21
@github-actions github-actions bot added the module:mixed-flink Flink moduel for Mixed Format label Oct 31, 2025
@turboFei turboFei marked this pull request as draft October 31, 2025 02:23
@turboFei turboFei changed the title Separate spark-3.3 and spark-3.5 building, and support to build on java 17 [AMORO-3851] Separate spark-3.3 and spark-3.5 building, and support to build on java 17 Oct 31, 2025
@turboFei turboFei force-pushed the separate_spark3.3_3.5 branch from 4838208 to 4e7226b Compare October 31, 2025 03:23
@turboFei
Copy link
Member Author

turboFei commented Oct 31, 2025

@xxubai
Copy link
Contributor

xxubai commented Oct 31, 2025

amoro_spark3-5.log any comments? @zhoujinsong @xxubai

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.

@turboFei turboFei force-pushed the separate_spark3.3_3.5 branch from c50284b to 0e2f726 Compare October 31, 2025 04:09
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 28.82%. Comparing base (4382d55) to head (0e2f726).
⚠️ Report is 2 commits behind head on master.

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     
Flag Coverage Δ
core 28.82% <ø> (-0.18%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@turboFei turboFei force-pushed the separate_spark3.3_3.5 branch from 1ffccde to 0cc3a46 Compare October 31, 2025 05:18
@github-actions github-actions bot removed the module:mixed-flink Flink moduel for Mixed Format label Oct 31, 2025
@turboFei turboFei changed the title [AMORO-3851] Separate spark-3.3 and spark-3.5 building, and support to build on java 17 [AMORO-3851] Separate spark-3.3 and spark-3.5 building Oct 31, 2025
@turboFei turboFei changed the title [AMORO-3851] Separate spark-3.3 and spark-3.5 building [AMORO-3851] Separate spark-3.3 and spark-3.5 modules Oct 31, 2025
@turboFei turboFei marked this pull request as ready for review October 31, 2025 05:56
@turboFei
Copy link
Member Author

cc @xxubai @zhoujinsong
This PR is ready, will try to support JDK17 in other PR

@xxubai xxubai merged commit b24ad3c into apache:master Oct 31, 2025
8 checks passed
@turboFei turboFei deleted the separate_spark3.3_3.5 branch November 2, 2025 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:ams-server Ams server module module:mixed-spark Spark module for Mixed Format type:build type:infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement]: Separate spark-3.3 and spark-3.5 building

3 participants