manuzhang opened a new issue, #3767: URL: https://github.com/apache/datafusion-comet/issues/3767
### Describe the bug When Comet converts native CastOverFlow errors to Spark exceptions, ShimSparkErrorConverter parses the overflow value using toFloat/toDouble. If the value is serialized as "inf" or "-inf", Scala parsing throws: For input string: "inf" / For input string: "-inf" instead of producing Spark’s expected CAST_OVERFLOW message with Infinity/-Infinity. This causes test and behavior mismatch in ANSI cast paths (e.g., FLOAT -> INT). ### Steps to reproduce _No response_ ### Expected behavior _No response_ ### Additional context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
