Commit df3d8e4
committed
### What changes were proposed in this pull request?
This PR aims to promote the following `checkArgument`, and `checkState` methods to `JavaUtils` by copying.
https://github.com/apache/spark/blob/1ae3d681983be9b7b46ec33282020e7d35b11903/launcher/src/main/java/org/apache/spark/launcher/CommandBuilderUtils.java#L220-L232
### Why are the changes needed?
- To reuse these Apache Spark utility methods widely in the whole Spark project.
- Note that we need to clone because `launcher` module cannot have the other dependency and the existing methods are not `public`. I added the following style note to ensure them in sync in the future.
> Keep this clone of CommandBuilderUtils.... synced with the original.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual review.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #51986 from dongjoon-hyun/SPARK-53256.
Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent b248ba5 commit df3d8e4
1 file changed
Lines changed: 20 additions & 0 deletions
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
740 | 760 | | |
0 commit comments