You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2021/04/10 09:34:41 UTC
[spark] branch branch-3.1 updated: [MINOR][SS][DOC] Fix wrong
Python code sample
This is an automated email from the ASF dual-hosted git repository.
maxgekk pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new a4e49cf [MINOR][SS][DOC] Fix wrong Python code sample
a4e49cf is described below
commit a4e49cfde8228cc7cb87670a4b7b0fa000098dae
Author: hissy <ao...@live.cn>
AuthorDate: Sat Apr 10 12:33:30 2021 +0300
[MINOR][SS][DOC] Fix wrong Python code sample
### What changes were proposed in this pull request?
This patch fixes wrong Python code sample for doc.
### Why are the changes needed?
Sample code is wrong.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Doc only.
Closes #32119 from Hisssy/ss-doc-typo-1.
Authored-by: hissy <ao...@live.cn>
Signed-off-by: Max Gekk <ma...@gmail.com>
(cherry picked from commit 214a46aa88cd682874584dc407ad130a30761884)
Signed-off-by: Max Gekk <ma...@gmail.com>
---
docs/structured-streaming-kafka-integration.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/structured-streaming-kafka-integration.md b/docs/structured-streaming-kafka-integration.md
index 5336695..35b4f43 100644
--- a/docs/structured-streaming-kafka-integration.md
+++ b/docs/structured-streaming-kafka-integration.md
@@ -140,7 +140,7 @@ df = spark \
df.selectExpr("CAST(key AS STRING)", "CAST(value AS STRING)")
# Subscribe to 1 topic, with headers
-val df = spark \
+df = spark \
.readStream \
.format("kafka") \
.option("kafka.bootstrap.servers", "host1:port1,host2:port2") \
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org