Skip to content

Commit

Permalink
[MINOR][DOC] Fixed deprecated procedure syntax
Browse files Browse the repository at this point in the history
### 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.
scala/bug#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 apache#42400 from mox692/deprecate_procedure_syntax.

Authored-by: mox692 <moymoymox@gmail.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
mox692 authored and vpolet committed Aug 24, 2023
1 parent 25a9e3d commit cbc1181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/quick-start.md
Expand Up @@ -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()
Expand Down

0 comments on commit cbc1181

Please sign in to comment.