Hugging Face Ships DuckDB 2.0 Extension: Query and Write hf:// Datasets in SQL

lhoestq · x · 2026-10-22

Hugging Face engineer lhoestq announced an official hf extension for DuckDB 2.0, available on day one. After installing it, you can read and write HF datasets, models and Spaces directly in SQL:

sql

SELECT FROM 'hf://datasets/fka/prompts.chat/prompts.csv';

COPY (SELECT ...) TO 'hf://datasets/me/demo/out.parquet';

Open-sourced on GitHub as duckdb-hf-extension.

Related event: Hugging Face Ships DuckDB 2.0 Extension for SQL Access to Datasets(3 posts)→

Original post →

More from Infra

Infra channel →