cloudparts

Apache Iceberg

The most widely supported open table format: snapshots of data files, tracked by a tree of metadata and swapped in atomically through a catalog.

Apache · Top-level project
What it is
Table formats
Used for
Lakehouses
Type
Open source
Foundation
The Apache Software Foundation, top-level project, joined November 2018
License
Apache 2.0
Facts checked
5 October 2026

What it is

An Iceberg table is a tree of files. At the top, a table metadata file records the schema, the partition spec and the list of snapshots. Each snapshot points to a manifest list, which points to manifests, which list the data files (usually Parquet) with column statistics for each file. A catalog, such as a REST catalog, AWS Glue or a JDBC database, stores where the current metadata file is, and a commit swaps that pointer atomically.

Because there are statistics at every level, an engine can rule out whole manifests without listing any directories. Partitioning is hidden: you partition by days(ts), queries just filter on ts, and you can change the scheme later without rewriting old data. Netflix built Iceberg and contributed it to the Apache Software Foundation in 2018. Spec versions 1, 2 and 3 are complete; v3 adds deletion vectors, row lineage, column default values and new types such as variant, geometry and nanosecond timestamps. Version 4 is still in development.

Why teams pick it

  • Wide engine support: Spark, Flink, Trino, DuckDB, ClickHouse, Snowflake, BigQuery, Athena and Redshift all work with it
  • The REST catalog protocol is an open standard, so one catalog can serve every engine
  • Hidden partitioning and partition evolution avoid accidental full scans and painful re-partitioning
  • Managed offerings on the big clouds, such as Amazon S3 Tables and Google’s Apache Iceberg managed tables in BigQuery

Watch out for

  • You need a catalog, and choosing one (Glue, Polaris, Nessie, a JDBC database and others) is a real decision
  • Frequent small commits pile up snapshots, manifests and small files, so compaction and snapshot expiry must run on a schedule
  • Engines adopt new spec versions unevenly: Athena works only with v2 tables, and Trino’s v3 support is experimental
  • Many concurrent writers to one table cause commit conflicts and retries
Data model
Snapshots of data files, tracked by a tree of metadata files, manifest lists and manifests
Transactions
One table per commit: an atomic swap of the metadata pointer in the catalog
Default isolation
Serializable, with optimistic concurrency
Storage format
Data files, usually Parquet, with column statistics for each file in the manifests
Written in
Java reference implementation
Ways to run it
Any engine with a catalog (REST, Glue, JDBC); managed as Amazon S3 Tables and BigQuery tables

Alternatives

What all table formats have in common →Compare side by side →
Delta LakeOpen sourceAn open table format built around a transaction log that lives in the table’s own folder; the default on Databricks.Apache HudiOpen sourceA table format built for upserts and incremental pulls, with record-level indexes and built-in table services.Apache PaimonOpen sourceA lake table format built on LSM trees, so streaming jobs can upsert into object storage and other jobs can read the changes as a stream.DuckLakeOpen sourceA lakehouse format that keeps table metadata in an ordinary SQL database and the data in Parquet files.LanceOpen sourceA file and table format for AI data: columnar like Parquet, but fast at fetching single rows, with vector and full-text indexes, versions and room for images and video.Apache XTableIncubatingOpen sourceAn incubating Apache project, formerly Onehouse’s OneTable, that makes one set of Parquet files readable as a Delta Lake, Apache Iceberg and Apache Hudi table at once by translating only the table metadata.icepickExperimentalOpen sourceA small, experimental Rust CLI and library that commits Parquet files to Apache Iceberg tables and runs compaction and snapshot cleanup through a REST catalog, aimed at Cloudflare’s R2 Data Catalog (now Basin Catalog) and Amazon S3 Tables, with no JVM.LakeSoulOpen sourceA lakehouse table format, first built by DMetaSoul, that keeps all metadata and commits in PostgreSQL and stores primary-key tables as hash buckets with merge-on-read upserts, aimed at CDC ingestion and frequent updates.Open Data FabricExperimentalOpen sourceAn open spec for datasets that keep their full history: Parquet files plus a hash-linked chain of metadata blocks, derived data made by deterministic streaming queries, and protocols for sharing it all.

How it fits with other technologies

What uses Apache Iceberg

Table maintenance in Spark SQL: evolve partitioning, list snapshots, compact, expire · sql

-- "lake" is an Iceberg catalog; the table was partitioned by days(ts)
ALTER TABLE lake.sales.orders REPLACE PARTITION FIELD ts_day WITH hours(ts);

SELECT snapshot_id, committed_at, operation
FROM lake.sales.orders.snapshots
ORDER BY committed_at DESC;

CALL lake.system.rewrite_data_files(table => 'sales.orders');
CALL lake.system.expire_snapshots(
  table => 'sales.orders',
  older_than => TIMESTAMP '2026-09-01 00:00:00');

Copy-on-write or merge-on-read#

Iceberg never edits a data file, so a row-level DELETE, UPDATE or MERGE has two options. Copy-on-write rewrites every data file that holds an affected row and commits a snapshot that swaps the old files for the new ones: reads stay as fast as before, but changing one row rewrites its whole file. Merge-on-read, available from format v2, leaves the data files alone and writes a small delete file that marks the removed rows; an update becomes a delete plus the new row in a new data file. Writes get cheap, and every reader pays by applying the deletes during its scan. Spark picks the mode per command from the table properties write.delete.mode, write.update.mode and write.merge.mode, which all default to copy-on-write.

Format v2 has two kinds of delete file. A position delete file lists a data file’s path and the positions of deleted rows in it, sorted by path and position so a reader can stream through it. An equality delete file lists column values, such as id = 5, and removes every matching row; the writer doesn’t need to know where the row is, which is why the spec notes that engines using equality deletes avoid reading existing data before writing. The price is at read time, when each row must be checked against the delete values. Every commit gets a sequence number: position deletes apply to data files with the same or a lower number, so a commit can delete rows it just added, and equality deletes only to strictly older files. Both apply only within the same partition, except equality deletes written unpartitioned, which apply to the whole table.

Format v3 replaces position delete files with deletion vectors: one bitmap of deleted row positions per data file, built from Roaring bitmaps, and stored as a deletion-vector-v1 blob in a Puffin file. A delete manifest points to each vector by file, offset and length, and one Puffin file can hold vectors for many data files. A snapshot may have at most one vector per data file, so a writer must merge new deletes into the existing vector, and any old position delete files, instead of adding another file; readers then apply one bitmap per data file. New position delete files are not allowed in v3 tables, though old ones stay valid. The v4 draft goes further: it keeps a data file’s vector in the same manifest entry and forbids new equality delete files.

Engines pick different encodings. Spark uses copy-on-write unless a table opts in; in merge-on-read it writes position delete files to v2 tables and, since Iceberg 1.8, deletion vectors to v3 tables. Flink’s upsert mode, for v2 and later tables with a primary key, writes equality deletes, so a streaming job can apply changes without looking up existing rows; Iceberg 1.12 (September 2026) adds a Flink maintenance task, ConvertEqualityDeletes, that turns them into deletion vectors on v3 tables. Trino writes position delete files for row-level changes to v2 tables and deletion vectors to v3 tables, whose support it still calls experimental.

Merge-on-read tables need compaction to stay fast, because each delete file adds work to every scan. Spark’s rewrite_data_files procedure rewrites data files with their deletes applied; its delete-file-threshold and delete-ratio-threshold (default 0.3) options select files with many deletes, and remove-dangling-deletes drops delete files that no longer match any live data file. rewrite_position_delete_files merges small position delete files and drops entries for data files that are gone. In Trino, optimize also rewrites data files that have delete files attached.

Ways to record a row-level change#

From the Iceberg table spec and engine docs, checked 2026-10-23.

EncodingFormat versionsWhat it recordsWrite costRead costWritten by
Copy-on-writeAllNothing extra: affected data files are rewrittenHigh: whole files rewrittenNoneSpark by default
Position delete filev2 (no new ones in v3)Data file path and row positionsLowMerge positions into each scanSpark and Trino merge-on-read on v2
Equality delete filev2 and v3 (no new ones in v4 draft)Column values; matches rows in older filesLowest: no lookup of existing rowsHighest: compare rows with delete valuesFlink upsert mode
Deletion vectorv3 and laterA bitmap of deleted positions for one data file, in a Puffin fileLow, plus merging with the file’s existing vectorLow: one bitmap per data fileSpark and Trino merge-on-read on v3; Flink’s equality-delete converter

See it in a real stack

Open lakehouse on Iceberg →
Live model
What you’re watchingServices publish order events to Kafka. Spark reads them in micro-batches and commits them to an Iceberg table whose files live on S3. Dashboard queries run on Trino, which reads the same table.

Compared side by side

Worth exploring

Paper· March 2026GraphLake: A Purpose-Built Graph Compute Engine for LakehouseShige Liu, Songting Chen, Chengjie Qin, Mingxi Wu and Jianguo Wang (Purdue University, TigerGraph), arXivExplains why running graph analytics over Iceberg tables is hard and how a TigerGraph-based engine does it: load only the key columns that form the topology, build one edge list per Parquet file, encode file and row in each vertex ID so properties can be fetched on demand, and cache column chunks with graph-aware priorities. On LDBC benchmarks it reports up to 26× faster startup and up to 60× faster queries than PuppyGraph, and it is candid that edge-list scans lose to TigerGraph’s own storage when few edges match. Half the authors work at TigerGraph and the baseline is a closed-source competitor measured from outside, so read the comparison with that in mind.
Video· February 2023Graph Queries on Data LakesWeimo Liu (PuppyGraph), Trino communityAn early talk for the Trino community making the case for a graph data lake instead of a graph database: keep the data once in tables such as Iceberg, start a separate graph query engine when you need traversals, and shut it down afterwards without losing anything. Summarised here from the event description; the speaker is PuppyGraph’s CEO, and the talk predates its product launch.
All resources →
Where it came from2017–2025

Netflix ran its analytics on Hive tables, the de facto standard layout that Hive, Presto and Spark all used. A Hive table tracks its partitions in a central metastore and finds the files inside by listing directories. On S3 that listing is slow, and while S3 listings were eventually consistent it could return wrong results. Changes to a table couldn’t be atomic, object stores have no real rename, and the metastore became a bottleneck when planning jobs.

Ryan Blue and Dan Weeks started Iceberg at Netflix in 2017 as “a new table format for storing large, slow-moving tabular data”, one that tracks every data file instead of directories. Netflix donated it to the Apache Software Foundation, where it entered the incubator in November 2018 and graduated in May 2020. Blue, Weeks and Jason Reid later founded Tabular, a data management company built on Iceberg.

Iceberg became the format most engines agreed on. In June 2024 Databricks, the company behind rival Delta Lake, agreed to acquire Tabular with the aim of making the two formats compatible, and in December 2024 AWS launched S3 Tables, which builds Iceberg support into S3 itself.

Why it’s built this way

Track individual files, not directories
Listing partition paths was slow on S3 and gave no atomicity. Iceberg’s metadata names every data file, so writers create files where they like and commit them explicitly, and planning a scan needs no listing.
Commit by swapping one pointer
Each change writes new metadata, then atomically replaces the pointer to the current metadata file. Readers never take locks and never see a partial write: the spec’s goal is serializable isolation.
A written spec, independent of any engine
Hive’s layout was a convention built into each engine. Iceberg wrote the table format down as a specification, so Spark, Trino, Flink and others could each implement it and read the same tables.
Schema and partition changes are metadata-only
The spec requires safe add, drop, rename and reorder of columns, including nested ones, and partition spec evolution, so changing a table’s design never means rewriting old data.

Timeline

  1. 2017

    Ryan Blue and Dan Weeks start Iceberg at Netflix

  2. 2018

    Donated to the Apache Software Foundation; enters the incubator in November

  3. 2020

    Graduates to a top-level Apache project in May

  4. 2021

    Format v2 tables, with row-level deletes, arrive in Iceberg 0.12

  5. 2022

    Iceberg 1.0 released in November

  6. 2024

    Databricks agrees to buy Tabular (June); AWS launches S3 Tables (December)

  7. 2025

    Iceberg 1.8 adds format v3 features: deletion vectors, variant, row lineage

Sources26 · facts checked 5 October 2026

Improve this page on GitHub