DuckLake 1.0: DuckDB’s SQL-Native Lakehouse Format, Explained for Engineers
DuckLake 1.0 makes a deceptively simple bet: the hardest part of a lakehouse is not storing the data, it is finding the right files. Apache Iceberg and Delta Lake answer that question with layers of metadata files. DuckLake answers it with a SQL query.
That single design choice ripples through everything else, from how schema changes behave to how much machinery you need to run a table format. Here is what the format actually is, how it works, and where the trade-offs land for working engineers.
What DuckLake 1.0 actually is
DuckLake is an open lakehouse table format from the DuckDB team. It splits the job in two: table metadata lives in a SQL database (the catalog), and the data itself lives in Parquet files in a folder or object store.
The catalog is not a thin pointer store. It holds the table list, the schemas, the snapshots, and file statistics. Any SQL database can serve as the catalog, provided it supports ACID transactions and primary key constraints. That is the entire requirement, and it is a much lower bar than running a dedicated metadata service.
The practical consequence is that snapshots, schemas and statistics are rows in a table you can query with SQL, not objects you have to parse out of a metadata file tree.
Release status and requirements
DuckLake 1.0 shipped in April 2026 with a stable specification and a guaranteed backward compatibility promise. That matters more than it sounds: a table format is a long-lived commitment, and a 1.0 with a stability guarantee is the signal that it is safe to build on.
The requirements are modest:
- DuckDB v1.5.2 or newer
- A recent Python 3
- An internet connection on first use, because DuckDB downloads the
ducklakeextension at that point
After that first fetch, the extension is local and the workflow is ordinary DuckDB.
How it differs from Iceberg and Delta Lake
Formats like Apache Iceberg and Delta Lake track much of their metadata in metadata files. Working out which data files satisfy a query means walking that metadata, often through several layers of manifests and logs.
In DuckLake, finding the right files is one SQL query against the catalog. The database engine that already knows how to plan and execute queries against indexed tables is now doing the file pruning. There is no separate metadata layer to keep consistent, because the metadata layer is the catalog.
One limitation is shared across the category. Like Iceberg and Delta Lake, DuckLake does not enforce constraints on your data: no indexes, no foreign keys, no UNIQUE or CHECK constraints on user tables. The primary key constraints the catalog relies on are about catalog integrity, not about rules on the rows you store. If you need referential integrity, it belongs upstream of the lake.
Choosing a catalog
The documentation gives a straightforward progression:
- DuckDB as the catalog for a single client
- SQLite for several local clients
- PostgreSQL for a multi-user lakehouse
The constraint that governs the choice is the same everywhere: the catalog must support ACID transactions and primary key constraints. That rules out anything eventually consistent. If you are already running Postgres for application data, you likely have your catalog.
Setting up a lake
The setup is a single ATTACH statement. The path after ducklake: is the catalog database, and DATA_PATH sets where the Parquet files go:
ATTACH 'ducklake:metadata.ducklake' AS lake (DATA_PATH 'data/');
USE lake;
Two details bite people. First, the catalog’s folder must already exist before attaching; DuckDB will not create the directory for you. Second, USE lake is not optional housekeeping. Without it, plain table names resolve against DuckDB’s temporary in-memory database, and you will spend a confusing afternoon wondering why your lake appears empty. The docs warn about this explicitly.
The data path is stored in the catalog, so later sessions skip specifying it. Attach the catalog and the lake knows where its files live.
What each change does
Every change creates a new snapshot. That is the core accounting rule, and snapshots() returns one row per snapshot with an ID, a time, a schema version, and a summary of what changed.
Updates are implemented as deletes followed by inserts. Old rows are masked by a delete file, and new versions are written as new data. Nothing is rewritten in place, which is what makes snapshot isolation cheap.
Schema changes are where the SQL-catalog design pays off most visibly. Adding a column or renaming one is a metadata operation. Existing Parquet files are not rewritten; the catalog simply maps old files to the new table shape. In a file-based metadata design, the same change means touching metadata files and reasoning about compatibility across readers. Here it is a row update.
Time travel with AT (VERSION => n)
DuckLake’s time travel syntax is AT (VERSION => n), which lets you query any table as it was at a given snapshot:
SELECT * FROM orders AT (VERSION => 3);
The catch is that snapshot numbers depend on exactly what ran before. Run one extra statement and every subsequent ID shifts. This is why the official tutorial names snapshots in a small JSON file rather than hard-coding IDs in scripts. If you are writing your own examples or tests, do the same: resolve the snapshot ID at runtime by querying snapshots(), then pass it to AT.
Tutorial walkthrough
The official demo uses six scripts run in order: step1_make_data.py, common.py, step2_load.py, step3_change.py, step4_time_travel.py, and step5_maintenance.py.
The data is two months of fake orders, 5,000 rows each, written as Parquet via COPY ... TO, producing 10,000 rows spanning 1 January to 28 February. The progression is instructive:
- After loading January, the table has 5,000 rows.
- After appending February’s data, 10,000 rows.
- After the schema change, still 10,000 rows, with old rows showing NULL in the new
channelcolumn.
That last line is the whole argument for metadata-only schema evolution in miniature. A new column appears across ten thousand rows without a single Parquet file being rewritten.
After step 2, the result on disk is a lake/ folder containing metadata.ducklake and a data/ folder of Parquet files. If you have ever stared at an Iceberg table’s directory tree trying to work out what is current, the contrast is stark.
What to watch
Two things deserve attention before you commit.
Maintenance. The tutorial’s final step, step5_maintenance.py, exists because delete files and old snapshots accumulate. The SQL-catalog approach makes metadata cheap to query, but it does not make storage free. Watch how compaction and cleanup behave as your snapshot count grows, and decide early how long you need to retain history. A retention policy set after the fact is harder to retrofit than one chosen up front.
Where the approach helps and hurts. It helps when your team already speaks SQL, when you want schema evolution without rewrites, and when you would rather run Postgres than a metadata service. It hurts if you need cross-engine interoperability with readers that only understand Iceberg or Delta Lake, or if your catalog database becomes a single point of failure you have not planned for. The catalog is now critical infrastructure, and it should be treated that way: backed up, monitored, and sized like any other production database.
For engineers running DuckDB in analytics pipelines, DuckLake 1.0 is the natural next step: the same engine and the same SQL, with a lakehouse format whose metadata you can debug with a SELECT.