Skip to the workspace
Pebellslearn by building
Warehouses, Marts and Lakes  ›  Capstone Project

Data Lakes and Lakehouses

Data Lake 12 minA data lake stores raw files cheaply in object storage and applies structure when read, needs zones and a catalog to stay usable, and becomes a lakehouse when a table format adds transactions.

data engineer / Data Lakes and Lakehouses

Explore each scene at your own pace.

01 · The rule

The rule

Data Lakes and Lakehouses

PedalCity's dock sensors produce nearly 7 million readings a day. Nobody knows yet which questions they will answer: battery health, vandalism, demand forecasting. Forcing them into warehouse tables now would mean guessing the model in advance and paying warehouse prices for data that is rarely read. A data lake stores it first and decides later.

The rule

A lake keeps everything raw and cheap; structure is applied when read.

A data lake is object storage, such as S3, Google Cloud Storage or Azure Blob Storage, holding files in open formats like JSON, CSV and Parquet, organized into folders:

s3://pedalcity-lake/raw/dock_readings/date=2026-09-24/part-0001.json.gz
s3://pedalcity-lake/clean/dock_readings/date=2026-09-24/part-0001.parquet
s3://pedalcity-lake/curated/dock_hourly/date=2026-09-24/part-0001.parquet

The key idea is schema-on-read. A warehouse uses schema-on-write: data must fit a table definition before it is stored. A lake accepts any file. Structure is applied later by whatever engine reads it. That makes landing new sources fast and cheap, and it keeps the original raw data so you can reprocess it when your logic improves.

The risk is a data swamp: millions of files nobody can find, trust or understand. Three habits prevent it:

  • Zones: raw (untouched), clean (typed and deduplicated), curated (ready to use). You may also see these called bronze, silver and gold.
  • Partitioned folders, such as date=2026-09-24, so readers skip what they do not need.
  • A catalog recording what each dataset is, who owns it and what its columns mean.

Plain files lack some things a warehouse gives you. You cannot safely update one row, and two jobs writing at once can corrupt a dataset. Table formats such as Delta Lake, Apache Iceberg and Apache Hudi add a transaction log on top of the files. That brings reliable updates, deletes, schema checks and "as of yesterday" queries. A lake with these features is often called a lakehouse.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.