Commit 3469ec6
[SPARK-48656][CORE] Do a length check and throw COLLECTION_SIZE_LIMIT_EXCEEDED error in
### What changes were proposed in this pull request?
This pr aims to optimize the error message by doing a length check and throw `COLLECTION_SIZE_LIMIT_EXCEEDED.INITIALIZE` error in `CartesianRDD.getPartitions`.
### Why are the changes needed?
Optimize the error prompts for Spark users.
### Does this PR introduce _any_ user-facing change?
Yes, this PR changes user-facing error class and message.
### How was this patch tested?
Add a new test case in `RDDSuite`.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #47019 from wayneguow/SPARK-48656.
Lead-authored-by: Wei Guo <[email protected]>
Co-authored-by: Kent Yao <[email protected]>
Signed-off-by: Kent Yao <[email protected]>CartesianRDD.getPartitions
1 parent b99bb00 commit 3469ec6
File tree
3 files changed
+31
-1
lines changed- core/src
- main/scala/org/apache/spark
- errors
- rdd
- test/scala/org/apache/spark/rdd
3 files changed
+31
-1
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
504 | 513 | | |
505 | 514 | | |
506 | 515 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
917 | 933 | | |
918 | 934 | | |
919 | 935 | | |
| |||
0 commit comments