AngersZhuuuu opened a new pull request #32296: URL: https://github.com/apache/spark/pull/32296
### What changes were proposed in this pull request? If the sign '-' inside of interval string, everything is fine after https://github.com/apache/spark/commit/bb5459fb26b9d0d57eadee8b10b7488607eeaeb2: ``` spark-sql> SELECT INTERVAL '-178956970-8' YEAR TO MONTH; -178956970-8 ``` but the sign outside of interval string is not handled properly: ``` spark-sql> SELECT INTERVAL -'178956970-8' YEAR TO MONTH; Error in query: Error parsing interval year-month string: integer overflow(line 1, pos 16) == SQL == SELECT INTERVAL -'178956970-8' YEAR TO MONTH ----------------^^^ ``` This pr fix this issue ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Added UT -- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
