RunyaoChen commented on code in PR #40140:
URL: https://github.com/apache/spark/pull/40140#discussion_r1116235955
##########
sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala:
##########
@@ -1106,6 +1106,16 @@ class InsertSuite extends DataSourceTest with
SharedSparkSession {
}
}
}
+
+ test("SPARK-42286: Insert into a table select from case when with cast,
positive test") {
Review Comment:
Before this change, we would hit
```
java.lang.ClassCastException: class
org.apache.spark.sql.catalyst.expressions.CaseWhen cannot be cast to class
org.apache.spark.sql.catalyst.expressions.AnsiCast
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]