res-life opened a new pull request #35845: URL: https://github.com/apache/spark/pull/35845
### What changes were proposed in this pull request? Fix overflow bug when reading interval string from CSV file. e.g.: interval '106751992' day will be converted to INTERVAL '-106751990' DAY. interval '2562047789' hour => INTERVAL '-2562047787' HOUR interval '153722867281' minute => INTERVAL '-153722867280' MINUTE This PR added the range check, throws exception if the interval is overflow. ### Why are the changes needed? To get the correct interval from CSV. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? UT. Closes #38520 Authored-by: Chong Gao <[email protected]> -- 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]
