Skip to contents

Validates the URL, loads the azure extension, then registers the dataset as a VIEW. Use az_conn() first if the connection needs an Azure secret. Returns conn invisibly — use tbl_parquet() if you want a dplyr::tbl().

Usage

load_parquet(conn, url, name, hive_partitioning = FALSE, replace = TRUE)

Arguments

conn

A DuckDB connection.

url

Character scalar. Azure Blob URL. Supports glob patterns.

name

Character scalar. Name to register the view under in DuckDB.

hive_partitioning

Logical. Enable Hive partition inference. Default FALSE.

replace

Logical. Replace an existing view. Default TRUE.

Value

Invisibly returns conn.

Examples

if (FALSE) { # \dontrun{
# Requires a live Azure account, credentials, and network access.
conn <- az_conn()
load_parquet(conn, "abfss://container@account/data/*.parquet", name = "events")
} # }