HyukjinKwon commented on a change in pull request #30835:
URL: https://github.com/apache/spark/pull/30835#discussion_r545821577
##########
File path: python/pyspark/sql/streaming.py
##########
@@ -953,6 +953,33 @@ def csv(self, path, schema=None, sep=None, encoding=None,
quote=None, escape=Non
else:
raise TypeError("path can be only a single string")
+ def table(self, tableName):
+ """Define a Streaming DataFrame on a Table and returns the result as a
:class:`DataFrame`.
Review comment:
I think it's fine to just copy and paste Scaladoc, and document the
return type as below according to numpydoc style
```
Define a Streaming DataFrame on a Table. The DataSource corresponding to the
table should
support streaming mode.
Parameters
...
Returns
--------
:class:`DataFrame`
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]