chaoqin-li1123 commented on code in PR #46139: URL: https://github.com/apache/spark/pull/46139#discussion_r1590520296
########## python/docs/source/user_guide/sql/python_data_source.rst: ########## @@ -137,3 +271,21 @@ Use the fake datasource with a different number of rows: # | Caitlin Reed|1983-06-22| 89813|Pennsylvania| # | Douglas James|2007-01-18| 46226| Alabama| # +--------------+----------+-------+------------+ + +Start a streaming query with the fake data stream. Once we register the python data source, we can use it as source of readStream() or sink of writeStream() by passing short name or full name to format(). + +.. code-block:: python + + query = spark.readStream.format("fake").load().writeStream().format("fake").start() Review Comment: Example output added. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org