Query Apache Hudi Tables in DuckDB

DuckDB can now read Apache Hudi tables. The DuckDB Hudi extension reads Copy-on-Write and Merge-on-Read tables from the DuckDB CLI, Python, or any application that embeds DuckDB. You don't need Spark or a JVM:
INSTALL hudi FROM community;
LOAD hudi;
SELECT * FROM hudi_scan('s3://my-bucket/warehouse/trips');
The extension supports snapshot, time-travel and incremental queries, and uses WHERE filters to skip partitions and files. On the 22 TPC-H queries over Copy-on-Write tables on Amazon S3, the extension runs about as fast as DuckDB reading Apache Parquet tables.
Why Hudi in DuckDB
Apache Hudi is an open data lakehouse platform. Hudi tables store data in open file formats such as Parquet on cloud storage, and Hudi is built for data that changes: Hudi applies record-level upserts and deletes quickly using indexes, ingests streams and change data capture (CDC) with low latency, and keeps tables fast with built-in compaction, clustering and cleaning. Because Hudi records every commit, you can read a table as of an earlier commit, or read only the records that changed.
Many queries now run on a single machine: in a terminal, a notebook, a CI job or an AI agent's tool call. DuckDB is a common engine for these queries: a simple, fast, in-process analytical database for data that fits on one machine. With the extension, you can check what yesterday's upserts changed from the DuckDB CLI, debug a pipeline commit by commit, rebuild a training set as of a past date, or let an agent query the lakehouse directly.
Getting Started
A quick refresher on what the extension handles. A Hudi table keeps a timeline of commits under .hoodie/, and each commit points to the file versions that make up the table at that point. A correct read uses the timeline to pick the latest file slices and, on a Merge-on-Read table, merges the log files into the base files. The extension does both, so DuckDB returns the same rows as Spark or Trino.
The extension runs on Linux, macOS and Windows, with builds for DuckDB 1.5 and 2.0. This post covers the build for DuckDB 2.0, the latest release. Install the extension once, then load the extension in each session:
INSTALL hudi FROM community;
LOAD hudi;
To update an earlier install, run FORCE INSTALL hudi FROM community;.
Query a table by path. hudi_scan works like any other table in DuckDB, in filters, joins, aggregates and views. read_hudi is an alias of hudi_scan and also works on earlier versions of the extension:
CREATE VIEW trips AS SELECT * FROM hudi_scan('/data/hudi/trips');
SELECT city, count(*) AS rides, avg(fare) AS avg_fare
FROM trips
WHERE trip_date >= DATE '2026-11-01'
GROUP BY city
ORDER BY rides DESC;
Each query reads the latest commit, so the view shows current data even while a Spark or Flink job keeps writing to the table.

