[ 
https://issues.apache.org/jira/browse/SPARK-40370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Max Gekk updated SPARK-40370:
-----------------------------
    Description: 
Replace TypeCheckFailure by DataTypeMismatch in type checks in the CAST 
expression:
typeCheckFailureMessage (6): 
https://github.com/apache/spark/blob/f8d51b9940b5f1f7c1f37693b10931cbec0a4741/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala#L428-L455

  was:
Replace TypeCheckFailure by DataTypeMismatch in type checks in arithmetic 
expressions:
1. Least (2): 
https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/arithmetic.scala#L1188-L1191
2. Greatest (2): 
https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/arithmetic.scala#L1266-L1269


> Migrate cast type check failures onto error classes
> ---------------------------------------------------
>
>                 Key: SPARK-40370
>                 URL: https://issues.apache.org/jira/browse/SPARK-40370
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Max Gekk
>            Priority: Major
>
> Replace TypeCheckFailure by DataTypeMismatch in type checks in the CAST 
> expression:
> typeCheckFailureMessage (6): 
> https://github.com/apache/spark/blob/f8d51b9940b5f1f7c1f37693b10931cbec0a4741/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala#L428-L455



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to