gaborgsomogyi commented on a change in pull request #23791:
[SPARK-20597][SQL][SS][WIP] KafkaSourceProvider falls back on path as synonym
for topic
URL: https://github.com/apache/spark/pull/23791#discussion_r260227416
##########
File path: docs/structured-streaming-kafka-integration.md
##########
@@ -499,20 +522,28 @@ StreamingQuery ds = df
.option("topic", "topic1")
.start();
-// Write key-value data from a DataFrame to Kafka using a topic specified in
the data
+// Write key-value data from a DataFrame to Kafka using the topic specified in
the data
StreamingQuery ds = df
.selectExpr("topic", "CAST(key AS STRING)", "CAST(value AS STRING)")
.writeStream()
.format("kafka")
.option("kafka.bootstrap.servers", "host1:port1,host2:port2")
.start();
+// Write key-value data from a DataFrame to Kafka using the topic specified in
the path option
+StreamingQuery ds = df
+ .selectExpr("CAST(key AS STRING)", "CAST(value AS STRING)")
Review comment:
Why make a deviation compared to all other places?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]