aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/structured-streaming-programming-guide.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/structured-streaming-programming-guide.md b/docs/structured-streaming-programming-guide.md
index aac88171fe..8c14c3d220 100644
--- a/docs/structured-streaming-programming-guide.md
+++ b/docs/structured-streaming-programming-guide.md
@@ -449,7 +449,7 @@ val userSchema = new StructType().add("name", "string").add("age", "integer")
val csvDF = spark
.readStream
.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")
{% endhighlight %}
@@ -476,7 +476,7 @@ StructType userSchema = new StructType().add("name", "string").add("age", "integ
Dataset[Row] csvDF = spark
.readStream()
.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")
{% endhighlight %}