This is an automated email from the ASF dual-hosted git repository.
yangjie01 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 b6c05259a0b9 [MINOR][SQL][TESTS] Fix compilation warning `adaptation
of an empty argument list by inserting () is deprecated`
b6c05259a0b9 is described below
commit b6c05259a0b98205d2f0fe2476ecd09c8d258b0a
Author: panbingkun <[email protected]>
AuthorDate: Mon Jul 15 17:11:17 2024 +0800
[MINOR][SQL][TESTS] Fix compilation warning `adaptation of an empty
argument list by inserting () is deprecated`
### What changes were proposed in this pull request?
The pr aims to fix compilation warning: `adaptation of an empty argument
list by inserting () is deprecated`
### Why are the changes needed?
Fix compilation warning.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manually check.
Pass GA.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #47350 from panbingkun/ParquetCommitterSuite_deprecated.
Authored-by: panbingkun <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
---
.../spark/sql/execution/datasources/parquet/ParquetCommitterSuite.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetCommitterSuite.scala
b/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetCommitterSuite.scala
index eadd55bdc320..fb435e3639fd 100644
---
a/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetCommitterSuite.scala
+++
b/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetCommitterSuite.scala
@@ -116,7 +116,7 @@ class ParquetCommitterSuite extends SparkFunSuite with
SQLTestUtils
test("SPARK-48804: Fail fast on unloadable or invalid committers") {
Seq("invalid", getClass.getName).foreach { committer =>
val e = intercept[IllegalArgumentException] {
- withSQLConf(SQLConf.PARQUET_OUTPUT_COMMITTER_CLASS.key -> committer)()
+ withSQLConf(SQLConf.PARQUET_OUTPUT_COMMITTER_CLASS.key ->
committer)(())
}
assert(e.getMessage.contains(classOf[OutputCommitter].getName))
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]