Description
The example below shows the issue:
spark-sql> select CAST(9223372036854775807L AS INTERVAL YEAR TO MONTH); org.apache.spark.SparkArithmeticException: [CAST_OVERFLOW] The value 9223372036854775807L of the type "BIGINT" cannot be cast to "INTERVAL MONTH" due to an overflow.
The target type "INTERVAL MONTH" is incorrect.