HyukjinKwon commented on a change in pull request #30835:
URL: https://github.com/apache/spark/pull/30835#discussion_r545847875
##########
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:
Ohh, I was clear. I meant, for example,
```python
"""Define a Streaming DataFrame on a Table. The DataSource corresponding to
the table should
support streaming mode.
.. versionadded:: 3.2.0
Parameters
----------
tableName : str
string, for the name of the table.
Returns
--------
:class:`DataFrame`
Notes
-----
This API is evolving.
Examples
--------
>>> csv_sdf = spark.readStream.table(input_table_name)
>>> csv_sdf.isStreaming
True
"""
```
----------------------------------------------------------------
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]