LuciferYang commented on code in PR #38940:
URL: https://github.com/apache/spark/pull/38940#discussion_r1041802953
##########
sql/core/src/test/scala/org/apache/spark/sql/UDFSuite.scala:
##########
@@ -638,10 +638,16 @@ class UDFSuite extends QueryTest with SharedSparkSession {
}
test("SPARK-28521 error message for CAST(parameter types contains
DataType)") {
- val e = intercept[AnalysisException] {
- spark.sql("SELECT CAST(1)")
- }
- assert(e.getMessage.contains("Invalid arguments for function cast"))
+ checkError(
+ exception = intercept[AnalysisException] {
+ sql("SELECT CAST(1)")
Review Comment:
Do you have any suggestions on the calculation way of `validParametersCount
`?
--
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]