WweiL commented on code in PR #40691:
URL: https://github.com/apache/spark/pull/40691#discussion_r1162080029


##########
python/pyspark/sql/streaming/readwriter.py:
##########
@@ -89,8 +92,8 @@ def format(self, source: str) -> "DataStreamReader":
 
         Examples
         --------
-        >>> spark.readStream.format("text")
-        <pyspark.sql.streaming.readwriter.DataStreamReader object ...>
+        >>> spark.readStream.format("text") # doctest: +ELLIPSIS

Review Comment:
   Ah I see, in line 538 there is one. I could remove all of the `# doctest: 
+ELLIPSIS` as we already defined them in the option: 
https://github.com/apache/spark/blob/17720b7121eee050a546126fad7ce8229fe6bda2/python/pyspark/sql/streaming/readwriter.py#L1504
   
   
https://stackoverflow.com/questions/17092215/how-enable-ellipsis-when-calling-python-doctest



-- 
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