Skip to content
Snippets Groups Projects
Commit 1bf13ba3 authored by Holden Karau's avatar Holden Karau Committed by Sean Owen
Browse files

[MINOR][DOCS][STREAMING] Minor docfix schema of csv rather than parquet in comments

## What changes were proposed in this pull request?

Fix parquet to csv in a comment to match the input format being read.

## How was this patch tested?
N/A (doc change only)

Author: Holden Karau <holden@us.ibm.com>

Closes #14274 from holdenk/minor-docfix-schema-of-csv-rather-than-parquet.
parent cfa5ae84
No related branches found
No related tags found
No related merge requests found
...@@ -449,7 +449,7 @@ val userSchema = new StructType().add("name", "string").add("age", "integer") ...@@ -449,7 +449,7 @@ val userSchema = new StructType().add("name", "string").add("age", "integer")
val csvDF = spark val csvDF = spark
.readStream .readStream
.option("sep", ";") .option("sep", ";")
.schema(userSchema) // Specify schema of the parquet files .schema(userSchema) // Specify schema of the csv files
.csv("/path/to/directory") // Equivalent to format("csv").load("/path/to/directory") .csv("/path/to/directory") // Equivalent to format("csv").load("/path/to/directory")
{% endhighlight %} {% endhighlight %}
...@@ -476,7 +476,7 @@ StructType userSchema = new StructType().add("name", "string").add("age", "integ ...@@ -476,7 +476,7 @@ StructType userSchema = new StructType().add("name", "string").add("age", "integ
Dataset[Row] csvDF = spark Dataset[Row] csvDF = spark
.readStream() .readStream()
.option("sep", ";") .option("sep", ";")
.schema(userSchema) // Specify schema of the parquet files .schema(userSchema) // Specify schema of the csv files
.csv("/path/to/directory"); // Equivalent to format("csv").load("/path/to/directory") .csv("/path/to/directory"); // Equivalent to format("csv").load("/path/to/directory")
{% endhighlight %} {% endhighlight %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment