Skip to content

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented Nov 18, 2025

What changes were proposed in this pull request?

This PR proposes to move isJavaVersionAtMost17 and isJavaVersionAtLeast21 from Utils.scala in core to SparkSystemUtils.scala in common/utils

Why are the changes needed?

To allow components which don't depend on core (like components under common/utils) use these methods. These utility methods can be commonly used like javeVersion in SparkSystemUtils.scala.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

GA.

Was this patch authored or co-authored using generative AI tooling?

No.

@sarutak sarutak marked this pull request as ready for review November 18, 2025 04:58
@github-actions github-actions bot added the CORE label Nov 18, 2025
Copy link
Contributor

@LuciferYang LuciferYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM

@LuciferYang
Copy link
Contributor

Merged into master. Thanks @sarutak

@dongjoon-hyun
Copy link
Member

+1, LGTM, too. Thank you!

@sarutak
Copy link
Member Author

sarutak commented Nov 19, 2025

Thank you @LuciferYang and @dongjoon-hyun !

huangxiaopingRD pushed a commit to huangxiaopingRD/spark that referenced this pull request Nov 25, 2025
…Least21` from `core` to `common/utils`

### What changes were proposed in this pull request?
This PR proposes to move `isJavaVersionAtMost17` and `isJavaVersionAtLeast21` from `Utils.scala` in `core` to `SparkSystemUtils.scala` in `common/utils`

### Why are the changes needed?
To allow components which don't depend on `core` (like components under `common/utils`) use these methods. These utility methods can be commonly used like `javeVersion` in `SparkSystemUtils.scala`.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
GA.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes apache#53108 from sarutak/move-java-version.

Authored-by: Kousuke Saruta <sarutak@amazon.co.jp>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants