Bookmarks

Data lake

A store that collects data in its original form — as is, with no schema — and describes its structure only when the data is read.

Also: datalake, raw data storage

checked 18 Nov

All terms

A store that collects data of every kind — tables from databases, logs, JSON, images, sensor readings — in its original form and in large volumes. The idea is that you don’t have to decide in advance which questions the data will be asked: load everything now, and sort it out when the need arises.

Such a store is needed when the data is diverse and future tasks are unknown: the raw material is kept centrally at low cost, while machine learning, search and SQL queries run directly on top of it. Typical sources include operational databases, application logs, and data from sensors and mobile apps.

Schema on write or schema on read

The key difference from a data warehouse (DWH) is the point at which the structure is fixed. In a DWH the schema is defined in advance: data is cleansed, shaped into a model and loaded ready for reporting. A data lake takes everything as it comes, and the structure is described at the moment of reading.

AspectData lakeData warehouse
Datastructured, semi-structured, unstructuredstructured, cleansed
Schemaon read (schema-on-read)on write (schema-on-write)
SourcesIoT, logs, mobile apps, social mediaoperational databases, business applications
Scalingeasy and cheapharder and more expensive
Workloadsmachine learning, data explorationcore reporting, BI

Where the term comes from

The term was coined by James Dixon, then CTO of Pentaho, in a blog post dated 14 October 2010. He compared a data mart to bottled water — cleansed and packaged for consumption — and a data lake to a body of water in its natural state: data flows into it from its sources, and users “come to explore, dive in and take samples”.

Typical components

  • Storage layer: usually object storage (S3-compatible) or HDFS — cheap and scales easily.
  • Data ingestion: batch or streaming loads, often via ETL/ELT pipelines.
  • Catalogue: metadata on which datasets are in the lake, where they came from and who owns them.
  • Processing engines: Spark, Trino/Presto, ClickHouse — they compute right where the data sits, with nothing moved out.
  • Access and quality management: access control and data quality checks.

Risks: a swamp instead of a lake

If everything is dumped into the lake without a catalogue or any rules, it turns into a “data swamp”: nobody knows what is inside, and the data can neither be found nor trusted. AWS calls this the main problem of the architecture: cataloguing, access control and consistency are needed, otherwise the data loses its value.

Lakehouse — the next step

The classic lake lacks transactions and versioning: updating a row or deleting data to comply with GDPR across a pile of raw files is awkward. A lakehouse adds a transactional layer with ACID guarantees on top of the lake — the Delta Lake, Apache Iceberg and Apache Hudi formats — and SQL queries then run directly on the raw files.

Sources

the term is written from these pages

Verified 18 Nov

Not to be confused with

what it is mixed up with and how it differs

  • DWHdata warehouse

    A data warehouse holds cleansed, structured data with schema-on-write — for reporting; a lake holds raw data in its original form.

  • data mart

    A data mart is a small store built for one department’s tasks; a lake is shared raw material for the whole company.

  • lakehouse

    A lakehouse is a data lake plus a transactional layer (Delta Lake, Iceberg) that adds ACID and a schema on top of raw files.

In depth in the references

where the topic is covered in detail