← Monday, September 28, 2026DatabasesDeep dive

DuckDB queries Hugging Face datasets directly over `hf://`

duckdb.org by The DuckDB team 6 min read Editor score 7/10

Preview image for DuckDB queries Hugging Face datasets directly over `hf://`

DuckDB can query CSV, JSONL, and Parquet files in Hugging Face dataset repositories through `hf://` without downloading them first. This can simplify exploratory analysis and access to ML datasets without a separate warehouse.

What
DuckDB can query Hugging Face dataset files directly through the hf:// protocol, without first downloading them.
How
The hf:// scheme builds on httpfs to resolve dataset repositories to files, and DuckDB reads only the columns a query needs.
Why it matters
For AI data workflows, querying remote datasets in place avoids a separate copy before analysis.
queries path uses reads files DuckDB hf:// protocol httpfs extension Hugging Face Hub
DuckDB uses the hf:// path scheme and httpfs to read dataset files hosted on Hugging Face Hub. Sketched from the article's own text.

Discussion

Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.

Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.

Your note

Private to you. Stored in this browser, and synced to your account when you are signed in.