What is Apache Iceberg?
Apache Iceberg is an open table format that turns a set of data files, usually Parquet in object storage, into a table with atomic commits, snapshots, schema evolution and hidden partitioning. Any engine that implements the spec, such as Spark, Trino, Flink or DuckDB, can read the same table.
How an Iceberg table is organized
An Iceberg table is a folder of data files plus a tree of metadata that says which of those files make up the table right now:
- Catalog. Holds a pointer to the table's current metadata file. AWS Glue, Nessie, a REST catalog or a JDBC database can play this role.
- Metadata file (JSON). The schema, the partition spec and the list of snapshots.
- Manifest list (Avro). One per snapshot, naming its manifests.
- Manifests (Avro). Lists of data files, each with its partition value, row count and per-column min/max.
- Data files. Usually Parquet; ORC and Avro are allowed.
A write adds new data files and new metadata, then swaps the catalog pointer in one atomic step. Readers keep seeing the previous snapshot until the swap and never see a half-finished commit. Old snapshots stay readable until they are expired, which is what makes time travel possible.
Reading an Iceberg table in DuckDB
This reads a small local table written by PyIceberg: 1,000,000 orders in two appends, partitioned by day(order_date), followed by a delete of one customer's rows.
INSTALL iceberg;
LOAD iceberg;
-- A local table has no catalog to say which metadata file is current
SET unsafe_enable_version_guessing = true;
-- One row per commit
SELECT sequence_number, snapshot_id
FROM iceberg_snapshots('warehouse/shop/orders')
ORDER BY sequence_number;
SELECT count(*) FROM iceberg_scan('warehouse/shop/orders');
-- Time travel: the table as of the first snapshot
SELECT count(*)
FROM iceberg_scan('warehouse/shop/orders',
snapshot_from_id = 355632568670586844);
-- Partition pruning: "Total Files Read: 1"
EXPLAIN ANALYZE
SELECT sum(amount)
FROM iceberg_scan('warehouse/shop/orders')
WHERE order_date = DATE '2026-01-20';Three snapshots come back, one per commit. The current one has 999,000 rows and the first has 500,000. The date filter reads 1 of the table's 38 data files, because the manifests record each file's partition value. A filter on customer_id reads all 38. Snapshot IDs differ on every table; copy yours from iceberg_snapshots.
What Iceberg adds to a folder of Parquet files
| Folder of Parquet files | Iceberg table | |
|---|---|---|
| Commits | Readers can see a partial write | Atomic snapshot swap |
| Deletes and updates | Rewrite files by hand | DELETE and UPDATE, by rewriting files or writing delete files |
| Schema changes | Old and new files disagree | Columns tracked by ID, so add, drop and rename are safe |
| Partitioning | Folder names; queries must filter on the folder column | Hidden: partition by day(ts), filter on ts |
| Finding files | List the bucket | Read the manifests |
The cost is upkeep. Every commit adds a snapshot and often small files, so tables need compaction and snapshot expiry, and you need a catalog. For append-only exports that no one updates, a Hive-partitioned folder can be enough. For how Iceberg compares with its closest alternative, see Iceberg vs Delta Lake.
In Thunderduck
Tables you create in your lake are Iceberg. On an AWS Glue catalog, tables are addressed as catalog.default.table, and CREATE TABLE ... AS SELECT produces a real Iceberg table with a location Thunderduck derives under the catalog's own prefix. Nessie catalogs and Cloudflare Basin also hold Iceberg tables. Reads skip files using partition values and min/max statistics.
LakeOps compacts Glue and Nessie tables daily to a 512 MiB target file size, and on Glue expires snapshots older than seven days. Nessie manages its own snapshot history.
Docs: https://docs.thunderduck.ai/catalogs/iceberg/