Description
SPARK-33541 introduces `QueryExecutionErrors#castingCauseOverflowError` and
there are 2 ways to input parameter `targetType` in spark:
- Use `DataType.catalogString` as `targetType`, such as use in `Cast.scala` and `IntervalUtils.scala`
- Use custom literal such as `short`,`int` and `long` in `Decimal.scala` and `numberics.scala`
And we can use `DataType.catalogString` uniformly