You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ya...@apache.org on 2024/07/15 09:11:34 UTC
(spark) branch master updated: [MINOR][SQL][TESTS] Fix compilation warning `adaptation of an empty argument list by inserting () is deprecated`
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 <pa...@baidu.com>
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 <pa...@baidu.com>
Signed-off-by: yangjie01 <ya...@baidu.com>
---
.../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: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org