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:35:28 UTC

[spark] branch branch-3.0 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.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 0803317  [MINOR][SS][DOC] Fix wrong Python code sample
0803317 is described below

commit 0803317acfd58461e44eaa84a4c12cde80cb24b2
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 600cf58..4566724 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