Skip to content

Commit

Permalink
[MINOR][SQL][TESTS] Fix compilation warning `adaptation of an empty a…
Browse files Browse the repository at this point in the history
…rgument 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]>
  • Loading branch information
panbingkun authored and LuciferYang committed Jul 15, 2024
1 parent 95de02e commit b6c0525
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit b6c0525

Please sign in to comment.