Yang Jie created SPARK-38123:
--------------------------------
Summary: Use `DataType.catalogString` uniformly as `targetType` of
`QueryExecutionErrors#castingCauseOverflowError`
Key: SPARK-38123
URL: https://issues.apache.org/jira/browse/SPARK-38123
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 3.3.0
Reporter: Yang Jie
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
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]