Skip to main content

Apache Iceberg

At a glance
  • Problem solved: make data lake tables (S3, HDFS) reliable and fast: atomic commits, isolated reads, schema and partitioning evolution, without relying on directory listings.
  • Era: work started at Netflix in August 2017, Apache Incubator on November 16, 2018, top-level project on May 20, 2020.
  • Created by: Ryan Blue and Dan Weeks, at Netflix.
  • Category: table format (lakehouse).

Historical context​

In the mid-2010s, Netflix's data warehouse already lives in the cloud: data on S3, metadata in the Hive Metastore, compute on EC2 with Hadoop and YARN, queries in Spark and Presto (and a little Hive and Pig). Ryan Blue estimates it at the time at 50 to 100 petabytes. The table format is the one inherited from Hive: a table is a directory tree (date=20180513/hour=19/...) and "whatever files are in there". Table state is therefore stored in two places (partitions in the metastore, files in a system with no transactions), and planning a query means listing every directory, which is slow and, on S3 at the time, eventually consistent.

Netflix piles up workarounds: the batch pattern (write to a new directory, then atomically swap the partition in a modified metastore), s3mper to check listing consistency, in-house S3 committers. These patches are expensive and leak to users: the Strata 2018 slides sum up the "paved path" of the time with rules such as "appends are actually overwrites, except in Presto" or "if you rename columns in Parquet, either Presto or Spark will work, but not both". Ryan Blue, who came from Cloudera where he had already seen these limits, recalls that his users corrupted a table by dropping a column or used a type that only one engine understood.

Ryan Blue and Dan Weeks start Iceberg in August 2017. The idea: stop tracking directories and track the exact list of files in the table, version by version. The code is opened under the Apache 2.0 license on Netflix's repository (late 2017 or early 2018, as Ryan Blue remembers it), then proposed to the Apache Software Foundation. The six initial committers come from Netflix, WeWork (Julien Le Dem, co-creator of Parquet), Hortonworks (Owen O'Malley, behind ORC) and Lyft. Apple works closely with Netflix to bring the project to production, followed by Expedia, Salesforce, Pinterest and LinkedIn.

Iceberg enters the incubator on November 16, 2018 and graduates on May 20, 2020, by unanimous vote of the ASF board, with Ryan Blue as the project's vice president. In 2021, Ryan Blue, Dan Weeks and Jason Reid leave Netflix and found Tabular to offer Iceberg as a managed service (Series A led by a16z, then $37M raised in total by 2023). On June 4, 2024, Databricks, publisher of the competing Delta Lake, announces the acquisition of Tabular to bring the two formats closer.

Key idea​

A table is no longer "a directory" but a tree of immutable metadata that lists exactly which data files make it up at any point in time. Each write produces a new snapshot and publishes it in one step by swapping a pointer: either everything is visible or nothing is. Because there are no more directory listings and no file renames, this model works well on object stores such as S3. Iceberg does not define a new file format: data stays in Parquet, ORC or Avro.

How it works​

  • Table metadata file: describes the schema, the partition spec, the properties and the list of snapshots. Every change creates a new file and replaces the old one with an atomic swap.
  • Snapshot: the complete state of the table at a point in time.
  • Manifest list (spec v1 to v3): one file per snapshot that lists the manifests, with partition statistics to skip reading some of them.
  • Manifests: each row describes a data file, its partition values and its metrics (min and max bounds per column). They are reused across snapshots.
  • Catalog: stores, for each table, the location of the current metadata file. Since version 0.14.0 (July 2022), the library ships a common client for REST catalogs, which resolve conflicts on the server side.
  • Optimistic concurrency: a writer prepares its new version assuming nothing changes, then tries the pointer swap; if the table moved in the meantime, it retries on the new version. Readers never take locks.
  • Hidden partitioning: the partition is derived from data columns (for example the day of a timestamp). Queries filter on data, not on partition columns, and the partition scheme can evolve.
  • Schema evolution: add, drop, rename and reorder columns, including nested ones, without rewriting files.

The spec aims to plan a scan in O(1) remote calls, not O(n) with the number of partitions. Example in Spark SQL:

CREATE TABLE prod.db.events (id bigint, ts timestamp, data string)
USING iceberg
PARTITIONED BY (day(ts));

-- time travel
SELECT * FROM prod.db.events TIMESTAMP AS OF '2024-06-01 00:00:00';

The spec has three adopted versions: v1 for analytic tables on immutable files, v2 for row-level deletes and updates (delete files), v3 for new types (variant, geometry, nanosecond timestamps), default values, row lineage and binary deletion vectors. A v4 is being designed in 2026.

By the numbers​

FigureContextSource
50 to 100 PBEstimated size of Netflix's warehouse when Iceberg was createdRyan Blue interview (Substack)
2.7 million filesOne month of Atlas metrics at Netflix, across 2,688 partitions (2018)Incubation proposal
9.6 min vs 25 sPlanning an Atlas query: Hive table vs Iceberg table with min/max filtering (2018)Incubation proposal
42 sTotal time of the same query on Iceberg, with 412 splits instead of over 400,000 (2018)Incubation proposal
6Initial committers, from 4 companies (2018)Incubation proposal
8 organizationsAttending the monthly community syncs started on October 8, 2019ASF Incubator
$37MTotal raised by Tabular, the company of Iceberg's creators (September 2023)Tabular press release

Milestones​

  • August 2017: Ryan Blue and Dan Weeks start Iceberg at Netflix.
  • September 2018: "The Evolution of Netflix's S3 Data Warehouse" talk at Strata New York.
  • November 16, 2018: enters the Apache Incubator.
  • October 25, 2019: first Apache release, 0.7.0-incubating.
  • May 20, 2020: graduation, Apache Iceberg becomes a top-level project.
  • 2021: Tabular founded by Ryan Blue, Dan Weeks and Jason Reid (Series A announced on August 29, 2021).
  • July 16, 2022: version 0.14.0, common client for REST catalogs.
  • October 4, 2023: version 1.4.0, format v2 becomes the default for new tables.
  • June 4, 2024: Databricks announces the acquisition of Tabular.
  • February 13, 2025: version 1.8.0, Variant type and deletion vectors (spec v3).

Did you know?​

  • The incubation proposal quotes Yoda to define atomicity: "Do or do not. There is no try."
  • Ryan Blue first wanted to fix the Hive table format at Cloudera, talking with Databricks engineers, but says the project never found support at a distributor with so many products.
  • Before Iceberg, he had already ported Netflix's internal table format to Spark twice.
  • At Netflix, Iceberg made data coming from Kafka available in minutes instead of hours, and replaced an in-memory database with a multi-petabyte Iceberg table queried by Trino.

Strengths and limitations​

StrengthsLimitations
Atomic commits and lock-free isolated reads, including on S3Needs a catalog to point to the current version
Schema and partitioning evolution without rewritesMaintenance to schedule: compaction, snapshot expiration, cleanup
Open spec, independent of any engine (Spark, Trino, Flink...)Engines do not all implement the same spec versions
Fast planning thanks to manifest statisticsConcurrent writes to the same table: conflicts handled by retry

What came next​

  • Delta Lake (Databricks, open source in 2019) and Hudi (Uber, 2016) address the same problem; UniForm, in Delta Lake, can expose a Delta table for reading as an Iceberg table.
  • Trino, Spark and Flink read and write Iceberg tables.
  • DataFusion is a building block of iceberg-rust, the Rust implementation of the format.

Sources​

To do
  • Exact date the code was first published on Netflix's repository (late 2017 or early 2018, from Ryan Blue's memory), to confirm on a non-GitHub source.
  • Formal adoption date of specs v2 and v3 (only library versions are dated here) and date of version 1.0.0.
  • Amount of the Tabular acquisition: not in Databricks' press release.
  • Adoption by major vendors (Snowflake, AWS, Google) to source from their official announcements.