Skip to content
Bronze 6 min read · All formats 2 practice problems ↓

Open table formats

A folder of Parquet files is not quite a table: nothing says which files are current, and a half-finished write is visible to everyone. Delta Lake, Iceberg and Hudi add a metadata layer that fixes that. This lesson shows what they have in common and how they differ.

Step 3 · Data lake & lakehouse · Bronze · Table formats, lesson 1 of 3

Read first: Lake, warehouse, lakehouse · Parquet and columnar storage (skip if you know them)

In plain words first

A library is more than a pile of books: it has a catalogue saying which books are on the shelf. Remove a card and the book is gone from the library, even if it still sits in the back room.

A table format is that catalogue for files. The table is whatever the current metadata lists, not whatever happens to be in the folder.

What a table format is

Without a table format, a table is "whatever files are in this folder". With one, a table is "whatever files the current metadata lists". That change makes commitscommit: One atomic change to a table: a new version that lists which files were added and removed. Learn more → atomic (switch to new metadata in one step), allows old versions to stay readable, and lets engines plan queries from metadata instead of listing storage.

The three formats

Delta LakeApache IcebergApache Hudi
OriginDatabricks, open-sourced 2019, now a Linux Foundation projectNetflix, donated to ApacheUber, donated to Apache
Original focusReliable Spark pipelines and streamingHuge tables, engine independence, correct schema and partition evolutionIncremental upsertsupsert: Update a row if its key exists, insert it if not. Done with MERGE. Learn more → and fast ingestion
MetadataOrdered JSON commit log plus ParquetParquet: A columnar file format: values of each column are stored together, so queries read only the columns they need. Learn more → checkpointscheckpoint: In Delta Lake, a Parquet file in _delta_log that summarises every commit up to one version, so readers load it instead of replaying all the JSON commits before it. Learn more →Tree: metadata file, manifestmanifest: An Iceberg metadata file listing data files and their statistics. Learn more → lists, manifestsTimeline of commits in a .hoodie folder
CommitCreate the next numbered log file atomicallyAtomically swap the catalogcatalog: The service that maps table names to their current metadata and controls who can access them. Learn more →'s pointer to a new metadata fileComplete an instant on the timeline
Strong pointsTight Spark integration, simple model, wide adoption on DatabricksBroad engine support (Spark, Trino, Flink, Snowflake, BigQuery, Athena...), hidden partitioningRecord-level indexes, merge-on-readmerge-on-read: Applying an update by recording the change and combining it when reading: fast writes, extra work for readers. Learn more → tables, built-in table services

What they share

  • Parquet data files (Hudi also uses Avro log files for merge-on-read).
  • ACIDACID: Atomicity, consistency, isolation and durability: the guarantees that make a write all-or-nothing and safe with other readers and writers. Learn more → transactions with optimistic concurrency.
  • Schema enforcement and evolution.
  • Time traveltime travel: Reading a table as it was at an earlier version or time. Learn more → to earlier versions or snapshotssnapshot: A complete, consistent version of a table at one moment. Readers always see one snapshot, never a half-finished write. Learn more →.
  • Updates, deletes and MERGE, by copy-on-writecopy-on-write: Applying an update by rewriting the affected files at once: slower writes, simple reads. Learn more → or merge-on-read.
  • File-level statistics for data skipping.
  • Maintenance operations: compactioncompaction: Rewriting many small files into fewer large ones, without changing the rows. Learn more → and removal of old files.

The formats have converged a lot. Features once unique to one (deletion vectorsdeletion vector: A small list of the deleted row positions in one data file, so a delete does not rewrite the file. Learn more →, row-level changes, clustering) now exist in several, and tools like Delta UniForm and Apache XTable let one copy of data be read as more than one format.

How teams choose

If you...Often a good fit
Run mostly on Databricks and SparkDelta Lake
Need many engines and vendors on the same tablesIceberg (the broadest support today)
Ingest high-volume CDC upserts with low latencyHudi, or Delta / Iceberg with merge-on-read
Use a specific platformIts native format: Snowflake, AWS and Google favour Iceberg; Databricks and Microsoft Fabric favour Delta
Note: in interviews, there is rarely a single right answer. Show you know the trade-offs: metadata model, engine support, write patterns, and the platform your company already runs.

Try it yourself

Each example says what it shows, then the output from a real run and what to notice in it, so you can follow without running anything. To try one yourself, paste it into a local Spark session with Delta Lake, with spark already created: each builds its own data.

Goal: Turn on table features and set retention when you create a Delta table.

Production patternPySpark · Set table features and retention when you create the table
import os

path = os.path.abspath("lab/formats_meta/customers")
spark.sql(f"""
    CREATE OR REPLACE TABLE delta.`{path}` (
        customer_id BIGINT, email STRING, tier STRING
    ) USING delta
    TBLPROPERTIES (
        -- consumers read the changes, not whole snapshots
        'delta.enableChangeDataFeed' = 'true',
        'delta.enableDeletionVectors' = 'true',       -- cheap deletes and updates
        'delta.logRetentionDuration' = 'interval 30 days',
        'delta.deletedFileRetentionDuration' = 'interval 7 days'
    )""")

props = spark.sql(f"SHOW TBLPROPERTIES delta.`{path}`")
props.where("key LIKE 'delta.enable%' OR key LIKE 'delta.%Retention%'") \
     .orderBy("key").show(truncate=False)

Output from a real run

+----------------------------------+----------------+
|key                               |value           |
+----------------------------------+----------------+
|delta.deletedFileRetentionDuration|interval 7 days |
|delta.enableChangeDataFeed        |true            |
|delta.enableDeletionVectors       |true            |
|delta.logRetentionDuration        |interval 30 days|
+----------------------------------+----------------+

What to notice:

  • All four properties are stored on the table itself, so every writer and reader gets them.
  • Change data feedchange data feed: A record of every inserted, updated and deleted row of a Delta table, with the version it changed in. Learn more → and deletion vectors are on; the log is kept 30 days and deleted files 7 days.

Goal: Read a Delta commit file and see what a table format actually records.

ExplorePySpark · Read a Delta commit: the actions a table format records
import json

path = "lab/formats_meta/t"
spark.range(0, 1000).write.format("delta").mode("overwrite").save(path)
spark.range(1000, 1500).write.format("delta").mode("append").save(path)


def actions(version):
    with open(f"{path}/_delta_log/{version:020d}.json") as log:
        return [json.loads(line) for line in log]


for version in [0, 1]:
    print(f"commit {version}:", [next(iter(a)) for a in actions(version)])

add = next(a["add"] for a in actions(1) if "add" in a)
print("an add action:", {k: add[k] for k in ["size", "dataChange"]})
print("its statistics:", json.loads(add["stats"]))

Output from a real run

commit 0: ['commitInfo', 'metaData', 'protocol', 'add', 'add', 'add', 'add']
commit 1: ['commitInfo', 'add', 'add', 'add', 'add']
an add action: {'size': 1000, 'dataChange': True}
its statistics: {'numRecords': 125, 'minValues': {'id': 1000}, 'maxValues': {'id': 1124}, 'nullCount': {'id': 0}}

What to notice:

  • Commit 0 holds protocol and metaData (the schema and properties) plus four add actions, one per data file written.
  • Commit 1, the append, has only commitInfo and four new add actions.
  • Each add carries statistics (row count, min and max id): this is what lets readers skip files. Iceberg keeps the same in manifests, Hudi in its timeline.

Common mistakes

  • Treating the formats as file formats — All three use Parquet files; the difference is the metadata.
  • Writing to a table with an engine that ignores the format — Plain Parquet writes bypass the log and corrupt the table view.
  • Choosing on benchmarks alone — Engine support and operations matter more for most teams.

Key takeaways

  • A table format is metadata that defines which files form each table version.
  • Delta uses a commit log, Iceberg a metadata tree, Hudi a timeline.
  • All three offer ACID, time travel, schema evolution and row-level changes.
  • Choose by engines, write patterns and platform, not benchmarks alone.

Interview prep

THE QUESTION

"Compare Delta Lake, Iceberg and Hudi."

All provide ACID tables over Parquet with time travel, schema evolution and row-level changes. Differences: Delta uses an ordered JSON log with checkpoints and integrates tightly with Spark; Iceberg uses a metadata tree with manifests, catalog-based atomic swaps and hidden partitioning, and has the broadest engine support; Hudi is built around a timeline and indexes for fast upserts, with copy-on-write and merge-on-read tables. Mention convergence and interoperability.

Avoid: a feature checklist with no trade-offs. Explain how each tracks table state and what that means for concurrency, engines and updates.

Follow-ups · answer out loud, then open

Follow-up"Where does each format keep its metadata?"
Delta: an ordered log of JSON commit files in _delta_log with periodic Parquet checkpoints. Iceberg: a tree of metadata JSON, manifest lists and manifests, with the catalog pointing at the current metadata file. Hudi: a timeline of actions in .hoodie, plus indexes that map record keys to file groups.
Scenario"Your company uses Spark, Trino and Snowflake. Which format would you choose?"
Iceberg is the safest default for many engines: broad native support and a standard REST catalog protocol. If the platform is mostly Databricks, Delta with UniForm can also serve Iceberg readers. Base the choice on the engines and the catalog, not on benchmarks.
Trap"Table formats replace Parquet."
No. They are a metadata layer on top of data files, which are almost always Parquet. You still tune Parquet file sizes and row groups.

Check yourself

3 questions

What file format do all three table formats use for data?

Show the answer

Parquet. All three store data in Parquet (Hudi also uses Avro logs for merge-on-read).

How does Iceberg make a commit atomic?

Show the answer

The catalog atomically swaps the pointer to a new metadata file. Iceberg relies on an atomic compare-and-swap in the catalog.

Which format originated at Uber for incremental upserts?

Show the answer

Hudi. Hudi (Hadoop Upserts Deletes and Incrementals) came from Uber.

Practise this

Problems that use this, graded on hidden tests

Keep going

Up next · Table formats · lesson 2 of 3 · 7 min read
ACID on object storage
Why plain Parquet folders break under concurrent writes and failures, and how table formats fix it.

Related lessons

Previous: Parquet and columnar storage

Primary sources: Delta Lake · Apache Iceberg · Apache Hudi