spark
spark copied to clipboard
[SPARK-39924][CORE] Extract `constructUnsupportedMergeException` method to deduplicate code in `AccumulatorV2`
What changes were proposed in this pull request?
The same UnsupportedOperationException is constructed in 3 places in AccumulatorV2, this pr extract an helper method to deduplicate code.
Why are the changes needed?
Deduplicate code
Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass GitHub Actions.