Skip to main content
← CONCEPTS / DATA ENGINEERING
An end-to-end domain learning journey

Lakehouse Table Formats
(Iceberg, Delta, Hudi).

Open table formats (Delta Lake, Apache Iceberg, Apache Hudi) add an ACID transaction log and metadata layer on top of cloud object storage (S3/GCS/ADLS) and Parquet files, enabling time travel, schema evolution, concurrent writes, and Medallion (Bronze/Silver/Gold) pipelines.
Start the journey7 sections· Last modified Nov 16, 2026
FIRST PRINCIPLES. PRODUCTION SCALE.
The idea to keep with you

To keep storage layouts predictable as data grows, Delta, Hudi), never write raw Hive-style Parquet directories for mutable production tables—use Iceberg, Delta, or Hudi for atomic commits, snapshot isolation, and partition evolution.

TL;DR30-second simplified summary
▾

Core Mechanics: Cloud object stores (S3, GCS, ADLS) lack atomic multi-file commits, and Hive-style directory listings (s3://bucket/dt=2026-11-18/) stall on millions of partitions.

Visual & Structural Flow: Depicts Catalog Pointer -> Snapshot -> Manifest List -> Parquet Data Files (Catalog (S3 Atomic CAS) -> Snapshot Manifest List -> Manifest Files (Avro) -> Parquet); Concurrent Writers -> Optimistic Catalog CAS -> Async Compaction (Flink / Spark Writers -> Catalog CAS Commit -> Trino / BI Readers -> Async Compact + Expire).

Trade-Offs & Production: All three solve ACID on object storage, with different strengths in multi-engine portability, Spark integration, and streaming upserts. Explore the end-to-end Medallion lakehouse system design and compare ETL/ELT, Kappa, and Lambda pipelines.

Failure Modes & Application: Explore the end-to-end Medallion lakehouse system design and compare ETL/ELT, Kappa, and Lambda pipelines.

Before you begin · Building blocksAlready know these? Jump to Stage 01 ↓
Apache Spark Data Engineering
Apache Spark processes petabyte-scale batch and streaming data across distributed clusters using lazy DAG execution, the Catalyst query optimizer, Tungsten off-heap memory, and Adaptive Query Execution (AQE) over columnar formats like Parquet, Delta Lake, and...
Full walkthrough · 7 stages
01
STAGE 01 · WHAT IT ISL4 · FUNDAMENTALS

What are Open Lakehouse Table Formats.

Why this matters: The mechanism: understand how Open Lakehouse Table Formats works from first principles.

Cloud object stores (S3, GCS, ADLS) lack atomic multi-file commits, and Hive-style directory listings (s3://bucket/dt=2026-11-18/) stall on millions of partitions. Open table formats (Apache Iceberg, Delta Lake, Apache Hudi) place a versioned ACID metadata/transaction log over immutable Parquet files.

Instead of listing S3 directories, readers consult the latest atomic snapshot pointer (metadata.json -> manifest list -> manifest files in Iceberg, or _delta_log/*.json in Delta) to get snapshot isolation, time travel, GDPR MERGE INTO / DELETE, and schema evolution.

Iceberg Metadata Tree

Catalog Pointer -> Snapshot -> Manifest List -> Parquet Data Files

Catalog (S3 Atomic CAS)Current metadata.json ptrSnapshot Manifest ListManifest Files (Avro)Page 0ParquetPage 2Page 3

1.Zero Directory LIST: Query engines prune partitions and data files using manifest min/max stats before reading S3.

2.Snapshot Isolation: Readers see a consistent point-in-time snapshot even while concurrent writers commit.

3.Partition Evolution: Iceberg evolves daily -> hourly partitioning in metadata without rewriting historical Parquet.

A hierarchical metadata tree turns eventually-consistent object storage into an ACID multi-engine database.

02
STAGE 02 · WHY WE NEED ITL4 · FUNDAMENTALS

Why Raw Parquet Directories Break Under Concurrent Writes & Deletes.

Why this matters: The problem: see what breaks without Why Raw Parquet Directories Break Under Concurrent Writes & Deletes under real concurrency or scale.

Think of Why Raw Parquet Directories Break Under Concurrent Writes & Deletes as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): The problem: see what breaks without Why Raw Parquet Directories Break Under Concurrent Writes & Deletes under real concurrency or scale.

Overwriting a raw Hive Parquet partition (INSERT OVERWRITE) exposes partial files to concurrent readers or corrupts the table on job failure. Furthermore, streaming micro-batches every 10 seconds create millions of 50 KB small files that degrade Spark/Trino scans by 20x unless compacted with OPTIMIZE / rewrite_data_files.

Lifecycle & Failure Recovery

Why Raw Parquet Directories Break Under Concurrent Writes & Deletes

admitsucceedbudget exceededInitializedProcessingInvariant MetDegraded Fallback
Engineering Decision Framework
Problem
How to implement Lakehouse Table Formats (Iceberg, Delta, Hudi) without hitting unbounded tail latency, state divergence, or operational fragility.
Naive Solution
Use a single unpartitioned path with unbounded retries and synchronous global coordination.
Why It Fails
Global coordination serializes throughput under load, while unbounded retries amplify transient stalls into full outages.
Alternatives
Compare synchronous strict-consistency paths against bounded asynchronous replication, local caching, or partitioned ownership.
Engineering Decision
To keep storage layouts predictable as data grows, delta, Hudi), never write raw Hive-style Parquet directories for mutable production tables—use Iceberg, Delta, or Hudi for atomic commits, snapshot isolation, and partition evolution.
Trade-Offs
Gains predictable p99 latency and fault isolation in exchange for explicit bounding, observability, and slightly higher implementation complexity.
Decision Exercise · Make the Call

When Lakehouse Table Formats (Iceberg, Delta, Hudi) experiences a sudden 5x traffic spike alongside a slow downstream dependency, which engineering choice best protects system stability?

Safe Snapshot Vacuuming

Never vacuum/expire snapshots too aggressively (e.g., < 24–72 hours) while long-running batch or ML training queries still reference older snapshots.

Hidden Partitioning

Iceberg derives days(event_ts) automatically from the timestamp column—preventing users from accidentally forgetting the partition filter and scanning the whole table.

03
STAGE 03 · WHERE IT IS USEDL5 · APPLIED DESIGN

Where Lakehouse Formats Excel (and Where OLTP RDBMS Wins).

Why this matters: Scope boundary: identify where this pattern fits best and where simpler or async alternatives win.

Think of Where Lakehouse Formats Excel (and Where OLTP RDBMS Wins) as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): Scope boundary: identify where this pattern fits best and where simpler or async alternatives win.

Use Iceberg/Delta/Hudi for analytical Bronze/Silver/Gold tables; use Postgres/DynamoDB for sub-10 ms OLTP.

ChoiceWhat it buysWhat it costs
Good Candidate: Medallion Lakehouses (Bronze/Silver/Gold)Multi-engine ACID reads/writes (Spark, Trino, Flink, Snowflake) with GDPR `MERGE INTO` and time travel.Requires scheduled `OPTIMIZE` compaction and `expire_snapshots` maintenance jobs.
Good Candidate: High-Frequency CDC Upserts (Hudi MoR / Delta DV)Merge-on-Read (MoR) and Deletion Vectors absorb streaming upserts without rewriting 512 MB Parquet files.Read queries must merge base + delta logs until async compaction finishes.
Avoid: Sub-10 ms OLTP Point LookupsPostgreSQL or DynamoDB serves single-row ACID transactions in `<5 ms`.Object-storage commits take ~100–500 ms and are built for columnar scans, not row OLTP.
04
STAGE 04 · HOW IT IS MANAGEDL5 · APPLIED DESIGN

Iceberg MERGE INTO Upserts, Time Travel & Compaction.

Why this matters: Operational control: configure bounds, failure handling, and safe production defaults.

Think of Iceberg MERGE INTO Upserts, Time Travel & Compaction as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): Operational control: configure bounds, failure handling, and safe production defaults.

Run atomic MERGE INTO for CDC upserts/GDPR deletes, query historical snapshots with as-of-timestamp, and schedule rewrite_data_files to merge small streaming files into 128–512 MB Parquet blocks.

Component Topology

Iceberg MERGE INTO Upserts, Time Travel & Compaction

CalleringressRouter / APIcomputeProcessorstorageState Layercontrolrequestdispatchread/write
# PySpark: Iceberg atomic MERGE INTO upsert + Time Travel + Compaction
spark.sql("""
  MERGE INTO catalog.silver.orders t
  USING staged_orders s
  ON t.order_id = s.order_id
  WHEN MATCHED THEN UPDATE SET *
  WHEN NOT MATCHED THEN INSERT *
""")

# Time-travel query to a prior consistent snapshot
df_yesterday = spark.read.option("as-of-timestamp", "2026-11-15T00:00:00Z").table("catalog.silver.orders")

# Compact small streaming files into optimal 256 MB blocks
spark.sql("CALL catalog.system.rewrite_data_files(table => 'silver.orders', options => map('target-file-size-bytes', '268435456'))")
05
STAGE 05 · ALTERNATIVESL6 · SCALE & TRADE-OFFS

Comparing Apache Iceberg vs. Delta Lake vs. Apache Hudi.

Why this matters: The trade-off: compare competing approaches across latency, consistency, and operational cost.

Think of Comparing Apache Iceberg vs. Delta Lake vs. Apache Hudi as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): The trade-off: compare competing approaches across latency, consistency, and operational cost.

All three solve ACID on object storage, with different strengths in multi-engine portability, Spark integration, and streaming upserts.

Design Trade-Off

Comparing Apache Iceberg vs. Delta Lake vs. Apache Hudi

Before · Unbounded Coupling
  • No backpressure on spikes
  • Implicit shared state
  • Cascading tail latency
After · Bounded & Observable
  • Explicit capacity budgets
  • Isolated failure domains
  • Predictable p99 latency
ChoiceWhat it buysWhat it costs
Apache IcebergBroadest multi-engine interoperability (Trino, Snowflake, Spark, Flink, BigQuery) + hidden partitioning & partition evolution.Requires a catalog (REST, Glue, Nessie) for atomic pointer swaps.
Delta LakeDeepest Spark/Databricks optimization, Liquid Clustering, and fast Deletion Vectors via `_delta_log`.Historically Spark-centric (UniForm bridges Iceberg/Hudi metadata compatibility).
Apache Hudi (CoW vs. MoR)Purpose-built record-level indexing and Merge-on-Read (MoR) for high-churn CDC upserts.Timeline + compaction tuning is more complex for pure append-only analytics.
06
STAGE 06 · PRODUCTION ARCHITECTUREL7 · STAFF / PRINCIPAL

Production Medallion: Streaming MoR / Micro-Batch + Async Compaction.

Why this matters: Production architecture: see how the components compose end to end under real load.

Think of Production Medallion: Streaming MoR / Micro-Batch + Async Compaction as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): Production architecture: see how the components compose end to end under real load.

In production, Flink or Spark Structured Streaming commits Bronze/Silver micro-batches every 1–5 minutes, while an asynchronous maintenance job compacts small files into 256 MB Parquet blocks and expires snapshots older than 7 days.

ACID Commit & Compaction

Concurrent Writers -> Optimistic Catalog CAS -> Async Compaction

Flink / Spark WritersWrite New Parquet + DeleteCatalog CAS CommitOptimistic Retry on ConflictTrino / BI ReadersSnapshot Isolation (Zer…Async Compact + Expire256MB Target + 7d…

1.Optimistic Concurrency: Two writers touching disjoint partitions both commit via catalog CAS retry.

2.Copy-on-Write vs MoR: CoW optimizes pure read speed; MoR + Deletion Vectors absorb frequent CDC updates.

3.Safe Vacuum: Retain >=24–72h of snapshots so long-running Trino/Spark jobs never hit FileNotFoundException.

Optimistic catalog commits decouple streaming writers from readers while background compaction keeps scan performance fast.

07
STAGE 07 · PROBLEMS SOLVED & FURTHER DEEP DIVEL7 · STAFF / PRINCIPAL

Medallion Lakehouses, ETL/ELT & Streaming Architectures.

Why this matters: Applied problems: connect these internals to concrete system design and debugging scenarios.

Think of Medallion Lakehouses, ETL/ELT & Streaming Architectures as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): Applied problems: connect these internals to concrete system design and debugging scenarios.

Explore the end-to-end Medallion lakehouse system design and compare ETL/ELT, Kappa, and Lambda pipelines.

Practice · Explain the consequences

Practice: Make the trade-off yourself.

Question 1 of 3
Score: 0/3

In Apache Hudi or Delta/Iceberg Merge-on-Read (MoR) tables, what trade-off does MoR make compared to Copy-on-Write (CoW)?

Recommended Learning Flow