What is an open table format?
An open table format is a public specification for the metadata that turns a collection of data files in object storage into a database table, with atomic commits, snapshots and a tracked schema. Apache Iceberg, Delta Lake and Apache Hudi are the three in wide use.
The problem it solves
Early data lakes were folders of files, and a table was whatever matched a path. That breaks as soon as data changes. A job that fails halfway leaves some of its files behind. A delete has to rewrite files while others are reading them. Nothing records the schema or which files are current, and listing millions of objects to plan a query is slow.
A table format answers one question in a way every engine agrees on: which files make up this table, at this moment?
What a table format provides
- Atomic commits. A write becomes visible all at once, by swapping one pointer or adding one log entry.
- Snapshots. Each commit is a version you can read later (time travel) or roll back to.
- Schema and partitioning, stored with the table instead of inferred from files.
- File statistics, so engines skip files without opening them.
- Row-level changes. DELETE, UPDATE and MERGE, done by rewriting files or by writing delete markers.
Open means the spec is public and several engines implement it. Spark can write a table that Trino, Flink or DuckDB then reads, with no export step in between.
Iceberg, Delta Lake and Hudi
| Apache Iceberg | Delta Lake | Apache Hudi | |
|---|---|---|---|
| Started at | Netflix | Databricks | Uber |
| Metadata | Metadata JSON, manifest lists and manifests | A _delta_log folder of JSON commits plus Parquet checkpoints | A timeline of commit files in a .hoodie folder |
| Data files | Parquet (ORC, Avro allowed) | Parquet | Parquet, plus log files for merge-on-read tables |
| Governed by | Apache Software Foundation | Linux Foundation | Apache Software Foundation |
The two most common are compared in detail in Iceberg vs Delta Lake.
Why the metadata matters: a DuckDB example
The local table from the Apache Iceberg page was written in two appends, then one customer's rows were deleted, which rewrote the affected files. Reading its data folder directly and reading it through the table metadata give different answers:
LOAD iceberg;
SET unsafe_enable_version_guessing = true;
-- Every Parquet file in the table's data folder
SELECT count(*) AS files FROM glob('warehouse/shop/orders/data/*/*.parquet');
-- Reading the folder directly: current and replaced files together
SELECT count(*) AS order_rows
FROM read_parquet('warehouse/shop/orders/data/*/*.parquet');
-- Reading through the table metadata: the current snapshot only
SELECT count(*) AS order_rows FROM iceberg_scan('warehouse/shop/orders');
SELECT count(*) AS files_in_current_snapshot
FROM iceberg_metadata('warehouse/shop/orders')
WHERE status <> 'DELETED';The folder holds 76 files and 1,999,000 rows, old and new versions of the same orders. The current snapshot references 38 of those files and 999,000 rows. The replaced files stay until their snapshots expire. That is the maintenance side of a table format: compaction merges small files, and expiry removes old snapshots.
In Thunderduck
The lake catalogs in Thunderduck hold Apache Iceberg tables: AWS Glue, Nessie and Cloudflare Basin. Files outside a table format, such as Parquet, CSV, JSON and Excel in S3, GCS, Azure or R2, are read by path through object-storage catalogs.
LakeOps maintains Glue and Nessie tables: compaction once a day to a 512 MiB target file size, and on Glue, expiry of snapshots older than seven days. Expiry only removes snapshots; orphan removal is the one operation that physically deletes files. Compaction for Basin tables is run by Cloudflare.
Docs: https://docs.thunderduck.ai/data/lakeops/