load_parquet: Register a Parquet dataset as a view on a DuckDB connection

View source: R/datasets.R

load_parquetR Documentation

Register a Parquet dataset as a view on a DuckDB connection

Description

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

## Not run: 
# Requires a live Azure account, credentials, and network access.
conn <- az_conn()
load_parquet(conn, "abfss://container@account/data/*.parquet", name = "events")

## End(Not run)

quak documentation built on June 9, 2026, 5:09 p.m.