dr_source_parquet()
Arrow handles local files, directories and supported object-storage URIs.
Configure remote credentials through Arrow. A lazy source returns an Arrow
Dataset; use dplyr verbs and
dataraft.core::dr_collect() to materialize it. Remote availability
is checked when reading, not during structural validation.
Usage
dr_source_parquet(path, lazy = TRUE, ...)Arguments
- path
- File, dataset directory or Arrow-supported URI.
- lazy
- Return a lazy Dataset instead of an ordinary tibble.
- ...
- Named arguments to
arrow::open_dataset().
Value
A source specification for
dataraft.core::dr_add_source().
Examples
\dontshow{if (requireNamespace("arrow", quietly = TRUE)) withAutoprint(\{ # examplesIf}
path <- tempfile(fileext = ".parquet")
arrow::write_parquet(data.frame(id = 1:2), path)
dataraft.core::dr_read_source(dr_source_parquet(path)) |> dataraft.core::dr_collect()
unlink(path)
\dontshow{\}) # examplesIf}Documentation source snapshot · View source at 2f9432d ↗
Code examples are documented source examples; they are not executed in this website build.
Code examples are documented source examples; they are not executed in this website build.