Data Engineering · Module 12
Data lakes and lakehouses
- Lessons
- 12
- Free
- 0
- Reading
- ~4 h
Your progress
0 / 12 lessons done
Sign in to trackLessons
- Data lakes: cheap storage and how they go wrongMost data platforms keep their raw and derived data as files in object storage. Knowing exactly where a folder of files stops behaving like a table tells you which bugs to expect, and why table formats exist.
- Table formats: Iceberg, Delta Lake and HudiOnce several engines read and write the same files on object storage, a folder of Parquet stops behaving like a table: readers see half-finished rewrites and deletes take days. A table format is what makes those files safe to share.
- Case: Grab’s data lake move to IcebergMoving a lake that many teams and engines already read is mostly about not breaking them, and about knowing where the speed and savings really come from. Grab’s account shows both, with the snags it hit on the way.
- Inside a table format: snapshots and transactionsEvery lakehouse table is a tree of small metadata files over large data files. When a job’s rows go missing, a query plans slowly or two jobs keep failing to commit, the cause is almost always in that tree, and you can read it.
- Time travel and rollback for tablesEvery data team ships a job that writes bad data sooner or later. Time travel turns that from a day of reloading into a few minutes of metadata work, but only if snapshots are still there when you notice.
- Medallion architecture: bronze, silver and gold layersMost lakehouse teams name their tables bronze, silver and gold. The names only help if each layer keeps a clear promise; otherwise you pay for three copies and still get two answers to one question.
- Catalogs: sharing tables across enginesOnce more than one engine reads or writes a lakehouse table, the catalog decides which version each of them sees. Pick it badly, or bypass it, and engines quietly disagree about the same table.
- Compaction and table maintenanceEvery lakehouse table that takes frequent writes gets slower and larger each day unless someone runs its maintenance. The jobs are short, but run in the wrong order or with the wrong retention they free nothing, or delete files a writer still needs.
- Streaming into Iceberg and Delta tablesOnce a lake holds tables instead of folders, someone asks for them to be minutes fresh instead of hours. A stream never ends but a table changes only at commits, and the way you bridge the two decides your file count, your read speed and whether a crash leaves duplicates.
- Case: Uber’s data lake from batch to streamingMost lakes start as batch jobs, and sooner or later a team asks for fresher data. The move to streaming is well understood; the work is in the problems it brings: small files, uneven partitions and commits that must match the processor’s progress.
- Lakehouse and warehouse: choosing, or using bothMost data platforms end up with both a lake and a warehouse. Placing each table on purpose, rather than by habit, decides who can read it, who pays for each read and which features you lose.
- Design: turning a data lake into a lakehouseMost teams don’t build a lakehouse from nothing; they convert a lake that dozens of jobs already read. The table format is the easy part. The work is moving history, keeping every reader right while two copies exist, and being able to step back at any point.
Practise with
No tools or paper guides for this module yet.
Terms this module teaches 4
Open glossaryIceberg catalog
The service that maps each Iceberg table name to its current metadata file, so every engine reads the same snapshot. It is for engines, not for people searching for data.
Lakehouse
A data platform that keeps tables as open files in object storage, with a table format on top, so warehouse-style queries and other engines work on one copy of the data.
Open table format
A published specification for metadata that makes a folder of data files, such as Parquet, behave like one table, with snapshots and safe concurrent writes, readable by many engines.
Time Travel
A warehouse or table-format feature that keeps earlier versions of a table for a set period, so you can query or restore the data as it was.