Description
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 ----------------^^^