Glossary

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.

DuckDB
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 filesIceberg table
CommitsReaders can see a partial writeAtomic snapshot swap
Deletes and updatesRewrite files by handDELETE and UPDATE, by rewriting files or writing delete files
Schema changesOld and new files disagreeColumns tracked by ID, so add, drop and rename are safe
PartitioningFolder names; queries must filter on the folder columnHidden: partition by day(ts), filter on ts
Finding filesList the bucketRead 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/

Related terms

Query the data where it lives.

Databases, warehouses and buckets in one SQL statement, from SQL clients, BI tools and AI agents.