From 80ba218c33e16bd9e7c10c15a95ea3922723ba03 Mon Sep 17 00:00:00 2001 From: mox692 Date: Wed, 9 Aug 2023 11:04:42 +0900 Subject: [PATCH] [MINOR][DOC] Fixed deprecated procedure syntax ### What changes were proposed in this pull request? The scala sample code in the quick-start chapter was using deprecated syntax, so this PR has fixed it. ### Why are the changes needed? procedure syntax (SI-7605) is now deprecated, and some editors or IDEs warn against this code. https://github.com/scala/bug/issues/7605 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? `SKIP_API=1 bundle exec jekyll build` on local. Closes #42400 from mox692/deprecate_procedure_syntax. Authored-by: mox692 Signed-off-by: Hyukjin Kwon --- docs/quick-start.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quick-start.md b/docs/quick-start.md index 91b23851f721e..8deb10e12cb25 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -313,7 +313,7 @@ named `SimpleApp.scala`: import org.apache.spark.sql.SparkSession object SimpleApp { - def main(args: Array[String]) { + def main(args: Array[String]): Unit = { val logFile = "YOUR_SPARK_HOME/README.md" // Should be some file on your system val spark = SparkSession.builder.appName("Simple Application").getOrCreate() val logData = spark.read.textFile(logFile).cache()