diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala index a28c2b55b3..3098060478 100644 --- a/project/SparkBuild.scala +++ b/project/SparkBuild.scala @@ -238,7 +238,15 @@ object SparkBuild extends PomBuild { "-Wconf:cat=other-match-analysis&site=org.apache.spark.sql.catalyst.catalog.SessionCatalog.lookupFunction.catalogFunction:wv", "-Wconf:cat=other-pure-statement&site=org.apache.spark.streaming.util.FileBasedWriteAheadLog.readAll.readFile:wv", "-Wconf:cat=other-pure-statement&site=org.apache.spark.scheduler.OutputCommitCoordinatorSuite..futureAction:wv", - "-Wconf:cat=other-pure-statement&site=org.apache.spark.sql.streaming.sources.StreamingDataSourceV2Suite.testPositiveCase.\\$anonfun:wv" + "-Wconf:cat=other-pure-statement&site=org.apache.spark.sql.streaming.sources.StreamingDataSourceV2Suite.testPositiveCase.\\$anonfun:wv", + // SPARK-33775 Suppress compilation warnings that contain the following contents. + // TODO(SPARK-33805): Undo the corresponding deprecated usage suppression rule after + // fixed. + "-Wconf:msg=^(?=.*?method|value|type|object|trait|inheritance)(?=.*?deprecated)(?=.*?since 2.13).+$:s", + "-Wconf:msg=^(?=.*?Widening conversion from)(?=.*?is deprecated because it loses precision).+$:s", + "-Wconf:msg=Auto-application to \\`\\(\\)\\` is deprecated:s", + "-Wconf:msg=method with a single empty parameter list overrides method without any parameter list:s", + "-Wconf:msg=method without a parameter list overrides a method with a single empty one:s" ) } }