Renders a lazy dbplyr query to SQL and streams the result to a Parquet file
using the package's internal SQL-to-Parquet writer. This avoids collecting
the full result into memory before writing.
Arguments
- tbl
A lazy table backed by
dbplyr, such as the result ofdplyr::tbl()or a pipeline ofdplyrverbs on a remote table.- out_file
Full path to the output Parquet file.
- chunk_size
Number of rows fetched and written per chunk. Default is
100000.- metadata
Optional named list of schema metadata to embed in the Parquet file.
- col_types
Optional named list specifying Arrow type overrides. Values may be string type names (for example
"int32"or"date") or ArrowDataTypeobjects.