Skip to the page

Cloud data platforms · mid

Delta Lake, Iceberg, Hudi and commits

A table format turns a folder of Parquet files into a table with atomic commits, time travel and MERGE. Delta, Iceberg and Hudi differ in metadata design, engine support and upsert focus.

The notes

What you must know

  • A plain folder: the table is whatever files a reader lists, so failed jobs leave partial files and readers can see half a write. A table format records a committed snapshot of files. Writers add data files first (invisible), then commit atomically.
  • Delta: each commit is a new numbered JSON file in _delta_log listing added and removed files, created only if that number does not exist. Concurrent writers use optimistic concurrency: the loser checks for conflicts and retries or fails. Parquet checkpoints summarise the log.
  • Iceberg: a metadata tree (table metadata, manifest lists, manifests) and the catalog swaps the current pointer atomically (compare-and-swap). The catalog is the source of truth.
  • All three give ACID tables, snapshots, time travel, schema evolution and MERGE, UPDATE and DELETE.
  • Delta: best fit with Databricks and Spark, liquid clustering, deletion vectors, change data feed, VARIANT; UniForm writes Iceberg metadata so Iceberg readers can read the table.
  • Iceberg: hidden partitioning, partition evolution, the widest engine support (Spark, Trino, Flink, Snowflake, BigQuery, Athena) and a REST catalog API. Spec v3 is adopted.
  • Hudi: built for heavy upserts and incremental reads, with record-level indexes, copy-on-write and merge-on-read tables and a timeline. Strong for CDC ingestion.
  • Copy-on-write rewrites files on update (fast reads, slow writes). Merge-on-read writes deletes or changes separately and merges at read time (fast writes, then compaction).
  • Old files stay for time travel until removed: Delta VACUUM (7 days by default), Iceberg expire_snapshots plus remove_orphan_files. Deleted data stays in old files until cleanup.
  • Choice for Spark, Trino and maybe Snowflake: Iceberg is the usual choice. Delta with UniForm if Databricks-centred. Hudi if the main job is high-volume upserts. The catalog decision matters as much as the format.
  • Bad UPDATE with no WHERE: stop downstream jobs, look at the history (Delta DESCRIBE HISTORY, Iceberg snapshots), and restore (RESTORE TABLE ... TO VERSION AS OF, Iceberg rollback_to_snapshot). If a stream wrote after the bad commit, restore then replay the stream or repair only the bad column with a MERGE from the old version.

The red pen

Common traps: mistake → fix

  • Mistake: It locks the folder

    Fix: it uses atomic metadata commits, not locks on the folder.

  • Mistake: Iceberg is a database

    Fix: it is a table format with a catalog.

  • Mistake: A plain restore is always right

    Fix: it can lose valid writes made after the bad change.

Easy to hard

Questions interviewers ask, easy to hard

  1. What does a table format add on top of Parquet?
  2. What happens on a commit in Delta and in Iceberg?
  3. Delta, Iceberg or Hudi for a new lakehouse with Spark, Trino and maybe Snowflake?
  4. Someone ran an UPDATE with no WHERE in production. What do you do?
  5. Copy-on-write or merge-on-read?

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview