Data lake
A data lake is a storage repository that holds large volumes of data in its original form, structured or unstructured, and applies structure only when the data is read. It serves analysis whose questions are not known when the data is stored.
What it is
A data lake is a repository that stores data at scale in the form in which it arrived, whether structured (tables), semi-structured (message files) or unstructured (documents, text, images). Data is kept without being reshaped first and is given structure only when a particular use arises. This approach is called schema-on-read.
A data warehouse works the other way round. It loads data that has already been cleaned and modelled, so every user finds the same agreed structure (schema-on-write).
A lake has recurring parts:
- Ingestion: feeds from source systems, files and messages land in the lake.
- Storage zones: a raw zone holds the untouched copy, and further zones hold cleansed or modelled data prepared for use.
- Catalogue and metadata: a description of what each dataset is, where it came from and who owns it.
- Access control: rules on who may read which dataset, which matter most for personal and confidential data.
- Processing: jobs that clean, join and aggregate data for analysts and models.
Why it matters
A lake serves questions that nobody asked when the data was collected. Keeping the original copy means a later model, an audit query or a corrected rule can start again from the source instead of from a lossy summary.
The same freedom creates a risk. Without a catalogue, named owners and quality checks, nobody can tell what a dataset contains or whether it can be trusted. Such a lake is called a data swamp. Data governance turns storage into something usable.
Worked example
Illustrative numbers. A bank lands a daily payments file of 2,000,000 records. A data quality rule rejects 1.5% of the records from the curated zone.
- Rejected per day: 2,000,000 x 1.5% = 30,000 records.
- Curated per day: 2,000,000 - 30,000 = 1,970,000 records.
- After five days the raw zone holds 10,000,000 records and the curated zone 9,850,000.
The rejected records stay in the raw zone. An analyst can later inspect them, find that one source field was mis-formatted, and rebuild the curated zone after the fix. With data lineage recorded, each curated record can be traced to its raw record.
How to read it
A lake is judged by how findable and trustworthy its datasets are, not by its size. A large lake where most datasets lack an owner, a description or a quality check behaves like a swamp. A smaller lake with a complete catalogue is usable.
Assumptions
- Source data is kept unaltered in the raw zone, so any later step can be repeated.
- Each dataset has an owner and a description in the catalogue.
- Access rules respect data protection obligations, because raw data often holds personal data.
- Retention rules say how long raw data is kept and when it is deleted.
Who uses it
- Data scientists read raw and curated data to build and test models.
- Data analysts query curated datasets for reports and ad hoc questions.
- Data governance analysts maintain the catalogue, ownership and quality rules that keep the lake usable.
- Banking data scientists combine transaction, customer and document data for risk and conduct models.
Common confusions
- A data lake is not a data warehouse. The lake stores data as it arrived; the warehouse stores modelled data with an agreed schema.
- Raw does not mean uncontrolled. Raw data still needs an owner, access control and a retention rule.
- A lake is not a database. It holds files and tables for processing, and it does not by itself enforce transactional integrity.
- A lakehouse is a different design that adds warehouse-style tables and management on top of lake storage.