Description
Replace TypeCheckFailure by DataTypeMismatch in type checks in the conditional expressions:
1. If (2): https://github.com/apache/spark/blob/1431975723d8df30a25b2333eddcfd0bb6c57677/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/conditionalExpressions.scala#L61-L67
2. CaseWhen (2): https://github.com/apache/spark/blob/1431975723d8df30a25b2333eddcfd0bb6c57677/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/conditionalExpressions.scala#L175-L183
3. InSubquery (2);
https://github.com/apache/spark/blob/1431975723d8df30a25b2333eddcfd0bb6c57677/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala#L378-L396
4. In (1):
https://github.com/apache/spark/blob/1431975723d8df30a25b2333eddcfd0bb6c57677/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala#L453
Attachments
Issue Links
- is a clone of
-
SPARK-40374 Migrate type check failures of type creators onto error classes
- Resolved
- is cloned by
-
SPARK-40749 Migrate type check failures of generators onto error classes
- Resolved
-
SPARK-40756 Migrate type check failures of string expressions onto error classes
- Resolved
- links to