Iceberg vs Delta Lake: same Parquet, two diaries

Apache Iceberg and Delta Lake both store your rows in ordinary Parquet files. The difference is the diary on top: Iceberg's metadata tree with a catalog pointer vs Delta's _delta_log of numbered JSON commits. One INSERT, DELETE and UPDATE traced through both, partitioning, deletion vectors, where each is native, UniForm and XTable, and how to pick.

Run one INSERT into a Delta Lake table and the commit is one JSON file. Run the same INSERT into an Apache Iceberg table and it writes three new metadata files, then swaps one pointer. The rows themselves land in the same kind of Parquet file either way.

That’s the whole “Iceberg vs Delta Lake” question in miniature. Both are table formats over Parquet data files (the last post explained what that means for Iceberg). What differs is how each one keeps its diary: which files it writes, who decides which commit wins, and how a reader finds the current table. This post traces the same operations through both, then covers partitioning, engines, interop and a fair way to pick. Nothing was benchmarked for it; every claim links to a spec or official doc.

One INSERT, traced in both formatspart-00007.parquet1. both write the data file first (invisible)Apache Iceberg (v1–v3)+ manifest (.avro): file + stats+ manifest list (.avro)+ v5.metadata.json: snapshot "append"catalog: swap v4 → v5 (only if still v4)= 3 new metadata files + 1 pointer swapDelta Lake+ _delta_log/…0005.json{"add": path, size, stats…}created only if no …0005.json exists(put-if-absent / mutual exclusion)every 10th commit (Spark default): +checkpoint= 1 JSON file is the commit
Not to scale. From the Apache Iceberg table spec (format versions 1–3; v4 is still in development and aims at cheaper small commits) and the Delta Transaction Protocol. Delta writers may also write an optional .crc checksum file; Delta's Spark library checkpoints every 10 commits by default.

Two diaries over the same data

Databricks’ own Delta docs describe Delta Lake as software that “extends Parquet data files with a file-based transaction log for ACID transactions and scalable metadata handling”. The UniForm docs put it even more plainly: “Delta Lake, Iceberg, and Hudi all consist of Parquet data files and a metadata layer.”

Apache Iceberg Delta Lake
Data files Parquet (also ORC, Avro) Parquet
The diary catalog pointer → metadata.json → manifest list → manifests _delta_log/ of numbered JSON commits + Parquet checkpoints
Who decides the current version the catalog, with a check-and-put swap whoever creates the next numbered file first
One commit writes ≥1 manifest, 1 manifest list, 1 metadata file (v1–v3) 1 JSON file
Spec iceberg.apache.org/spec (v1–v3 adopted, v4 in development) PROTOCOL.md

Delta’s diary is a folder next to the data. The protocol says “Delta files are the unit of atomicity for a table, and are named using the next available version number, zero-padded to 20 digits”, so the log looks like 00000000000000000000.json, …0001.json, and so on. Each file is newline-delimited JSON, one action per line: add a file (with its path, partition values, size and optional stats), remove a file, change metaData, record commitInfo. That file is the commit: it exists, or it doesn’t.

Iceberg’s diary is a tree. The spec: “All changes to table state create a new metadata file and replace the old metadata with an atomic swap.” The current metadata.json lists snapshots; each snapshot has a manifest list; manifests list data files with their stats. The data folder never says which version is current. The catalog does.

Trace 1: INSERT

Both formats first write the new Parquet file. Nobody can see it yet.

  • Delta writes version 5: _delta_log/00000000000000000005.json with one add line carrying the path, size and stats (numRecords, minValues, maxValues, nullCount).
  • Iceberg writes a new manifest (a row for the file with its partition values and column bounds), a new manifest list for the new snapshot, and a new metadata.json whose snapshot has the operation append (“Only data files were added and no files were removed”). Older manifests are reused.

A small default worth knowing: Delta collects data-skipping stats for the first 32 columns (delta.dataSkippingNumIndexedCols, table properties), while Iceberg collects metrics for up to 100 columns (write.metadata.metrics.max-inferred-column-defaults, configuration). If your filter column sits at position 40 of a wide Delta table, change the setting or reorder.

Who decides which commit wins

Both use optimistic concurrency: write first, then try to commit, retry on conflict. The commit point is different.

Delta needs the storage to let only one writer create a given file. Its storage docs list two requirements: atomic visibility, and “Mutual exclusion: Only one writer must be able to create (or rename) a file at the final destination.” The protocol adds: “Writers MUST never overwrite an existing log entry.” If writer B loses the race for …0005.json, Delta checks whether the winning commit conflicts with what B read and, if not, B commits as …0006.json. Per the concurrency docs, two INSERTs “cannot conflict”; UPDATE, DELETE and MERGE can. On S3, the storage docs say default mode is safe only for writes from a single Spark driver, “because S3 currently does not provide mutual exclusion”, and the multi-cluster mode “uses DynamoDB to provide the mutual exclusion that S3 is lacking”. (AWS added conditional writes to S3 in August 2024; check your Delta version’s docs for what it uses.)

Iceberg puts the decision in the catalog: the writer “commits by swapping the table’s metadata file pointer from the base version to the new version”, and “if the snapshot on which an update is based is no longer current, the writer must retry”. The catalog’s check-and-put (swap v4 → v5 only if it still says v4) is the whole lock.

How a reader finds the table

How a reader finds the current tableDelta Lake: newest checkpoint + replay the JSON commits after it8910 ckpt11121314skip 0–9 (summarised in 10.checkpoint.parquet), read 10, replay 11–14Apache Iceberg: one pointer, then down the treecatalogmetadata.jsonmanifest listmatching manifestsmanifests whose partition ranges can't match are never opened
Not to scale. Delta Transaction Protocol (Checkpoints, _last_checkpoint; checkpoint interval 10 is the Spark library's default) and Apache Iceberg spec (manifest list stats used to skip manifests).

A Delta reader can’t trust one file; it needs the whole story. So it finds the newest checkpoint (via _delta_log/_last_checkpoint, “rather than list the entire directory”), a Parquet file that “contains the complete replay of all actions” up to that version, then replays the JSON commits after it. Delta’s Spark library writes a checkpoint every 10 commits by default (checkpointInterval in DeltaConfig.scala); the protocol itself tells readers not to assume any frequency.

An Iceberg reader asks the catalog once, reads one metadata.json and one manifest list, then opens only the manifests whose partition ranges can match.

Delta’s history also has its own clock: delta.logRetentionDuration keeps 30 days of log by default, and delta.deletedFileRetentionDuration keeps removed data files for 1 week before VACUUM may delete them. Time travel reaches only as far as the files you keep (Iceberg’s snapshot expiry was in the previous post).

Trace 2 and 3: DELETE and UPDATE

Parquet files are immutable. The classic way, in both formats, is to rewrite the whole file without the deleted row (copy-on-write, Iceberg’s default write.delete.mode).

The newer way is to mark the row instead:

  • Delta deletion vectors. “With deletion vectors enabled for the table, some Delta operations use deletion vectors to mark existing rows as removed without rewriting the Parquet file” (docs). In the log, that’s a remove of the file and an add of the same path with a deletionVector attached. DELETE uses them since Delta 2.4.0, UPDATE by default since 3.1.0. OPTIMIZE or REORG TABLE … APPLY (PURGE) later rewrites the files.
  • Iceberg v3 deletion vectors. The spec: “The current representation is deletion vectors (v3 or above), which encode deleted positions of a single file in a bitmap”, and “at most one deletion vector is allowed per data file in a snapshot”. v2’s position delete files are no longer written in v3.

The nice twist is in Iceberg’s Puffin spec, which defines the deletion-vector blob: the length and CRC fields are big-endian while the bitmap is little-endian, and “Big endian values were chosen for compatibility with existing deletion vectors in Delta tables.”

An UPDATE is the two together: mark the old row deleted, write its new version in a new file. Delta logs a remove and an add; Iceberg commits a snapshot with the operation overwrite. Same idea, different ink.

Partitioning: where the designs split most

Apache Iceberg Delta Lake
How you declare it a transform of a real column, e.g. day(event_time) (“hidden”) a partition column, e.g. event_date (a generated column can fill it)
Changing it later partition evolution: “a metadata operation”, old files keep the old spec replace the partitioning with an overwrite (overwriteSchema), i.e. a rewrite
Newer alternative – liquid clustering: CLUSTER BY, columns can change “without rewriting existing data”

Sources: Iceberg partitioning and evolution; Delta batch reads and writes (generated columns can produce partition filters automatically), best practices (partition only if each partition holds “at least 1 GB”) and liquid clustering (Delta 3.1+, “not compatible with partitioning or ZORDER”).

Where each one is at home

Engine Iceberg Delta Lake
Databricks managed Iceberg tables in Unity Catalog, spec v1–v3 (docs) the default: “all tables on Databricks are Delta Lake tables by default”
Spark iceberg-spark-runtime delta-spark
Snowflake Iceberg tables (docs) reads Delta files as Iceberg tables (“Delta Direct”)
Trino Iceberg connector Delta Lake connector
DuckDB direct reads read-only; writes via an Iceberg REST catalog (docs) reads, creates and appends (docs)
ClickHouse reads v1–v2, v3 partial; writes since 25.7 behind a setting (docs) reads; writes are Beta (docs)

The walls between the two camps are thin, and in 2024 they got thinner. On June 4, 2024, Databricks, which originally developed Delta Lake, announced it had agreed to acquire Tabular, “a data management company founded by Ryan Blue, Daniel Weeks, and Jason Reid”, the original creators of Iceberg. Both diaries, one company.

One copy of the data, two diaries

  • Delta UniForm “allows you to read Delta tables with Iceberg and Hudi clients” by generating Iceberg metadata asynchronously after each Delta commit. Limits from its docs: it’s “read-only from an Iceberg and Hudi perspective”, it “does not work on tables with deletion vectors enabled”, and frequent Delta commits may be bundled into one Iceberg commit.
  • Apache XTable (incubating, formerly OneTable) “is NOT a new or separate format”; it reads one format’s metadata and writes another’s, in any direction between Delta, Iceberg and Hudi. Its FAQ lists current limits, including no Iceberg/Hudi merge-on-read tables and no Delta deletion vectors.
  • Apache Hudi, the third format people compare, keeps its own timeline of actions under .hoodie/, again over Parquet data files.

So which one?

  • Delta Lake if your world is Databricks and Spark: it’s the native format there, with the least friction (and liquid clustering, change data feed, streaming built around it).
  • Apache Iceberg if several engines and vendors share one table through a catalog: it’s the format most engines above read and increasingly write, and partition evolution is metadata-only.
  • Either way your rows stay in Parquet, so changing your mind later is mostly a metadata job (UniForm, XTable), not a data migration.
  • Caught in the middle? UniForm: write Delta, read it as Iceberg, as long as you can live without deletion vectors on that table.

What neither choice changes: you still need maintenance (Delta’s OPTIMIZE and VACUUM, Iceberg’s snapshot expiry and compaction), and you still need to check your engine’s doc page for the exact spec version and features it supports.

Sources: Apache Iceberg table spec · Iceberg Puffin spec · Iceberg docs: configuration, partitioning, evolution · Delta Transaction Protocol · Delta docs: storage, concurrency, table properties, deletion vectors, liquid clustering, UniForm · Databricks press release, 2024-06-04 · engine docs linked in the table · Apache XTable · Apache Hudi.