Data lake & lakehouse
28 in-depth lessons. From data lake basics (file formats, folder layout, partitioning) to Delta Lake, Apache Iceberg and Apache Hudi: how table formats bring transactions to object storage, and how to run them.
Bronze
Module 1: Lake foundations
Choose file formats and a folder layout for a data lake.
- Lake, warehouse, lakehouse · Bronze · 6 min read. What data lakes and warehouses each get right, and what the lakehouse borrows from both.
- Data lake storage: formats and layout · Bronze · 7 min read. CSV, JSON, Avro, ORC and Parquet compared, compression, and how to lay out folders in a data lake.
- Parquet and columnar storage · Bronze · 7 min read. Row groups, column chunks and statistics: why columnar files let engines skip most of the data.
Module 2: Table formats
Explain how Delta, Iceberg and Hudi make a folder of files a table.
- Open table formats · Bronze · 6 min read. Delta Lake, Iceberg and Hudi: a metadata layer that turns a folder of Parquet files into a table.
- ACID on object storage · Bronze · 7 min read. Why plain Parquet folders break under concurrent writes and failures, and how table formats fix it.
- The medallion architecture · Bronze · 6 min read. Bronze, silver and gold layers: what belongs in each, and where the pattern goes wrong.
Silver
Module 3: Delta day to day
Read the log, travel in time and evolve a schema safely.
- The Delta transaction log · Silver · 8 min read. Commit files, checkpoints and optimistic concurrency: how the _delta_log turns files into a table.
- Time travel and RESTORE · Silver · 5 min read. Query or roll back to any earlier version of a table, and what retention does to that promise.
- Schema enforcement and evolution · Silver · 6 min read. What a table rejects on write, how mergeSchema adds columns, and which changes are safe.
- Constraints and generated columns · Silver · 6 min read. NOT NULL and CHECK constraints, generated columns and identity columns in Delta tables.
Module 4: Changing data
Upsert with MERGE, keep history with SCD Type 2 and read change feeds.
- MERGE INTO and upserts · Silver · 7 min read. Matched, not-matched and not-matched-by-source clauses, step by step, and the duplicate-source error.
- Slowly changing dimensions (SCD Type 2) · Silver · 8 min read. Keep the full history of a dimension with one MERGE per batch, and the edge cases that break it.
- Change Data Feed · Silver · 5 min read. Read the row-level inserts, updates and deletes made to a Delta table between two versions.
Module 5: Keeping tables fast
Partition, compact, cluster and vacuum tables.
- Partitioning done right · Silver · 6 min read. When to partition a table, how to choose the column, and how over-partitioning backfires.
- Compaction, OPTIMIZE and Z-order · Silver · 5 min read. Rewrite small files into large ones and cluster data so queries skip more of it.
- VACUUM and retention · Silver · 6 min read. Delete old data files safely without breaking running readers or time travel.
Gold
Module 6: Iceberg and Hudi
Explain Iceberg metadata and Hudi indexes, and pick copy-on-write or merge-on-read.
- Iceberg metadata tree · Gold · 6 min read. Metadata files, snapshots, manifest lists and manifests, and how query planning uses them.
- Hidden partitioning and partition evolution · Gold · 6 min read. Iceberg partition transforms, and changing a table layout without rewriting its data.
- Copy-on-write vs merge-on-read · Gold · 6 min read. Two ways to apply updates and deletes, and which one fits a given workload.
- Apache Hudi: keys, indexes and table services · Gold · 7 min read. Record keys, COW and MOR tables, the index, the timeline, and when Hudi is the right choice.
Module 7: Gold write patterns
Use deletion vectors, liquid clustering, conflict-free writers and write-audit-publish.
- Deletion vectors · Gold · 5 min read. Mark rows as deleted without rewriting whole files, and the cost readers pay for it.
- Liquid clustering · Gold · 5 min read. Incremental clustering in Delta Lake that replaces fixed partitions and Z-order.
- Concurrency and conflicts · Gold · 6 min read. Optimistic concurrency, the conflicts that fail a commit, and how to design writers around them.
- Branches, tags and write-audit-publish · Gold · 7 min read. Stage a write on an Iceberg branch, check it, then publish atomically, and the Delta equivalents.
Module 8: The open ecosystem
Explain catalogs, interoperability and the newest format versions.
- Catalogs: Unity, Polaris, Iceberg REST · Gold · 5 min read. What a catalog does for a lakehouse, and the open catalogs that arrived in 2024 and 2025.
- Format interoperability · Gold · 5 min read. Delta UniForm and Apache XTable: one copy of the data, readable as Delta, Iceberg or Hudi.
- Iceberg format v3 · Gold · 5 min read. Deletion vectors, row lineage, default values and VARIANT: what the v3 table spec adds.
- Delta Lake 4.0 · Gold · 5 min read. VARIANT, type widening, collations and the other changes that shipped alongside Spark 4.0.