Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
maropu committed Apr 16, 2020
commit d66a9aad77d95af679e3df1f2b6808a89ddd4a81
5 changes: 2 additions & 3 deletions sql/core/src/test/scala/org/apache/spark/sql/UDFSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -557,11 +557,10 @@ class UDFSuite extends QueryTest with SharedSparkSession {
}

val errMsg = intercept[IllegalArgumentException] {
val invalidGroupName = "invalidGroupName"
val invalidGroupName = "invalid_group_funcs"
new ExpressionInfo("testClass", null, "testName", null, "", "", "", invalidGroupName, "", "")
}.getMessage
assert(errMsg === "'group' is malformed in the expression [testName]. It should be a value " +
"in [agg_funcs, collection_funcs, datetime_funcs]; however, got [invalidGroupName].")
assert(errMsg.contains("'group' is malformed in the expression [testName]."))
}

test("SPARK-28521 error message for CAST(parameter types contains DataType)") {
Expand Down