Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Interface for saving the content of the streaming DataFrame out into external storage.
Returns
DataStreamWriter
Examples
import time
import tempfile
df = spark.readStream.format("rate").load()
type(df.writeStream)
# <class '...streaming.readwriter.DataStreamWriter'>
with tempfile.TemporaryDirectory(prefix="writeStream") as d:
query = df.writeStream.toTable("my_table", checkpointLocation=d)
time.sleep(3)
query.stop()