[
https://issues.apache.org/jira/browse/SPARK-38123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487879#comment-17487879
]
Apache Spark commented on SPARK-38123:
--------------------------------------
User 'LuciferYang' has created a pull request for this issue:
https://github.com/apache/spark/pull/35412
> Unified use `DataType.catalogString` 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
> Priority: Minor
>
> 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]