[ 
https://issues.apache.org/jira/browse/SPARK-55755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cheng Pan resolved SPARK-55755.
-------------------------------
    Fix Version/s:     (was: 4.2.0)
       Resolution: Duplicate

Reverted, in favor SPARK-55714

> Handle null ArithmeticException message on JDK 25
> -------------------------------------------------
>
>                 Key: SPARK-55755
>                 URL: https://issues.apache.org/jira/browse/SPARK-55755
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.2.0
>            Reporter: Kent Yao
>            Assignee: Kent Yao
>            Priority: Major
>              Labels: pull-request-available
>
> On JDK 25, Math.multiplyExact/addExact may throw ArithmeticException without 
> a message (null instead of 'long overflow'). This causes NPE in tests that 
> check the raw exception message, and could produce null message parameters in 
> Spark error conditions through MathUtils.withOverflow.
> This fix:
> 1. Updates MathUtils.withOverflow to provide a fallback message 'Overflow' 
> when the raw JDK exception message is null (both interpreted and codegen 
> paths).
> 2. Makes test assertions null-safe for raw ArithmeticException message checks 
> across multiple test suites.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to