Skip to content

Commit 5a0569c

Browse files
manugarrizsxwing
authored andcommitted
[MINOR][DOC] Remove parenthesis in readStream() on kafka structured streaming doc
There is a typo in http://spark.apache.org/docs/latest/structured-streaming-kafka-integration.html#creating-a-kafka-source-stream , python example n1 uses `readStream()` instead of `readStream` Just removed the parenthesis. Author: manugarri <[email protected]> Closes #16836 from manugarri/fix_kafka_python_doc.
1 parent 266c1e7 commit 5a0569c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/structured-streaming-kafka-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ds3.selectExpr("CAST(key AS STRING)", "CAST(value AS STRING)")
9090

9191
# Subscribe to 1 topic
9292
ds1 = spark
93-
.readStream()
93+
.readStream
9494
.format("kafka")
9595
.option("kafka.bootstrap.servers", "host1:port1,host2:port2")
9696
.option("subscribe", "topic1")
@@ -108,7 +108,7 @@ ds2.selectExpr("CAST(key AS STRING)", "CAST(value AS STRING)")
108108

109109
# Subscribe to a pattern
110110
ds3 = spark
111-
.readStream()
111+
.readStream
112112
.format("kafka")
113113
.option("kafka.bootstrap.servers", "host1:port1,host2:port2")
114114
.option("subscribePattern", "topic.*")

0 commit comments

Comments
 (0)