You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2022/02/07 05:40:00 UTC
[jira] [Created] (SPARK-38123) Use `DataType.catalogString` uniformly as `targetType` of `QueryExecutionErrors#castingCauseOverflowError`
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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org