Writes a Spark dataframe stream into a table.
stream_write_table(
x,
path,
format = NULL,
mode = c("append", "complete", "update"),
checkpoint = file.path("checkpoints", random_string("")),
options = list(),
partition_by = NULL,
...
)
A Spark DataFrame or dplyr operation
The path to the file. Needs to be accessible from the cluster. Supports the "hdfs://", "s3a://" and "file://" protocols.
Specifies format of data written to table E.g.
"delta"
, "parquet"
. Defaults to NULL
which will use
system default format.
Specifies how data is written to a streaming sink. Valid values are
"append"
, "complete"
or "update"
.
The location where the system will write all the checkpoint information to guarantee end-to-end fault-tolerance.
A list of strings with additional options.
Partitions the output by the given list of columns.
Optional arguments; currently unused.
Other Spark stream serialization:
stream_write_csv()
,
stream_write_memory()