HyukjinKwon opened a new pull request #33452: URL: https://github.com/apache/spark/pull/33452
### What changes were proposed in this pull request? This PR avoid using procedure syntax deprecated in Spark 2.13. https://github.com/apache/spark/runs/3120481756?check_suite_focus=true ``` [error] /home/runner/work/spark/spark/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/FileFormatDataWriterMetricSuite.scala:44:90: procedure syntax is deprecated: instead, add `: Unit =` to explicitly declare `testMetricOnDSv2`'s return type [error] private def testMetricOnDSv2(func: String => Unit, checker: Map[Long, String] => Unit) { [error] ^ [error] /home/runner/work/spark/spark/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/InMemoryTableMetricSuite.scala:44:90: procedure syntax is deprecated: instead, add `: Unit =` to explicitly declare `testMetricOnDSv2`'s return type [error] private def testMetricOnDSv2(func: String => Unit, checker: Map[Long, String] => Unit) { [error] ^ [warn] 100 warnings found [error] two errors found [error] (sql / Test / compileIncremental) Compilation failed [error] Total time: 579 s (09:39), completed Jul 21, 2021 4:14:26 AM ``` ### Why are the changes needed? To make the build compatible with Scala 2.13 in Spark. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually tested: ```bash ./dev/change-scala-version.sh 2.13 ./build/sbt clean package -Pscala-2.13 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
