This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new ef00aa1434a [SPARK-38956][TESTS] Fix FAILED_EXECUTE_UDF test case on
Java 17
ef00aa1434a is described below
commit ef00aa1434ae5c5ecfec5e9b4ffaa2ed0f0e45d4
Author: William Hyun <[email protected]>
AuthorDate: Wed Apr 20 11:03:55 2022 +0900
[SPARK-38956][TESTS] Fix FAILED_EXECUTE_UDF test case on Java 17
### What changes were proposed in this pull request?
This PR aims to fix FAILED_EXECUTE_UDF test case on Java 17.
### Why are the changes needed?
**BEFORE (Java17)**
```
[info] QueryExecutionErrorsSuite:
16:04:22.234 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
16:04:24.377 ERROR org.apache.spark.executor.Executor: Exception in task
0.0 in stage 0.0 (TID 0)
org.apache.spark.SparkException: Failed to execute user defined function
(QueryExecutionErrorsSuite$$Lambda$1582/0x0000000801653be8: (string, int) =>
string)
```
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manually test on Java 17.
Closes #36270 from williamhyun/w.
Authored-by: William Hyun <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
.../scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
b/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
index 6b8f255c7e6..1d5ffc516e7 100644
---
a/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
+++
b/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
@@ -432,6 +432,6 @@ class QueryExecutionErrorsSuite extends QueryTest
val e2 = e1.getCause.asInstanceOf[SparkException]
assert(e2.getErrorClass === "FAILED_EXECUTE_UDF")
assert(e2.getMessage.matches("Failed to execute user defined function " +
- "\\(QueryExecutionErrorsSuite\\$\\$Lambda\\$\\d+/\\d+: \\(string, int\\)
=> string\\)"))
+ "\\(QueryExecutionErrorsSuite\\$\\$Lambda\\$\\d+/\\w+: \\(string, int\\)
=> string\\)"))
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]