stream_write_table: Write Stream to Table

View source: R/stream_data.R

stream_write_tableR Documentation

Write Stream to Table

Description

Writes a Spark dataframe stream into a table.

Usage

stream_write_table(
  x,
  path,
  format = NULL,
  mode = c("append", "complete", "update"),
  checkpoint = file.path("checkpoints", random_string("")),
  options = list(),
  partition_by = NULL,
  ...
)

Arguments

x

A Spark DataFrame or dplyr operation

path

The path to the file. Needs to be accessible from the cluster. Supports the ‘⁠"hdfs://"⁠’, ‘⁠"s3a://"⁠’ and ‘⁠"file://"⁠’ protocols.

format

Specifies format of data written to table E.g. "delta", "parquet". Defaults to NULL which will use system default format.

mode

Specifies how data is written to a streaming sink. Valid values are "append", "complete" or "update".

checkpoint

The location where the system will write all the checkpoint information to guarantee end-to-end fault-tolerance.

options

A list of strings with additional options.

partition_by

Partitions the output by the given list of columns.

...

Optional arguments; currently unused.

See Also

Other Spark stream serialization: stream_write_csv(), stream_write_memory()


rstudio/sparklyr documentation built on Sept. 18, 2024, 6:10 a.m.