| tbl_delta | R Documentation |
Validates the URL, loads the azure and delta extensions, then returns a
lazy dplyr::tbl() over the table. Use az_conn() first if the connection
needs Azure extensions, settings, or secrets.
tbl_delta(
conn,
url,
name = NULL,
method = c("attach", "view"),
replace = TRUE,
version = NULL,
timestamp = NULL
)
conn |
A DuckDB connection. |
url |
Character scalar. Azure Blob URL pointing to a Delta table
(e.g. |
name |
Optional character scalar. Name to register the table under in
DuckDB. When |
method |
|
replace |
Logical. Replace an existing registration of the same name.
Default |
version |
Optional non-negative Delta table version to read. |
timestamp |
Optional Delta table timestamp to read. Only one of
|
When name is NULL the table is queried directly via delta_scan() with
no persistent object registered on the connection. When name is supplied
the table is first registered via load_delta() (as an ATTACH database or a
VIEW depending on method), then referenced by name.
Delta time travel currently requires name because DuckDB exposes
version and timestamp through ATTACH, not delta_scan().
A dplyr::tbl() backed by the Delta table.
## Not run:
# Requires a live Azure account, credentials, and network access.
conn <- az_conn()
tbl_delta(conn, "abfss://container@account/path/sales") |>
dplyr::filter(amount > 100) |>
dplyr::collect()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.