viirya commented on code in PR #37582:
URL: https://github.com/apache/spark/pull/37582#discussion_r950651293


##########
python/pyspark/sql/session.py:
##########
@@ -1185,6 +1363,22 @@ def readStream(self) -> DataStreamReader:
         Returns
         -------
         :class:`DataStreamReader`
+
+        Examples
+        --------
+        >>> spark.readStream
+        <pyspark.sql.streaming.readwriter.DataStreamReader object ...>
+
+        The example below uses Rate source that generates rows continously.
+        After that, we operate a modulo by 3, and then writes the stream out 
to the console.

Review Comment:
   ```suggestion
           After that, we operate a modulo by 3, and then write the stream out 
to the console.
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to