Course: Data Science and Database Technologies
Professor: Elena Baralis, Politecnico di Torino, DBMG.
Source: Data Lakes, local DSTBD_6-DataLakes-ENG.pdf, 9 PDF pages. 06 is preserved from the source filename; no lecture date is supplied.

Lecture summary

A data lake is a repository for raw data and transformed data used for different kinds of reporting and analysis. It can contain structured relational data, semi-structured CSV/JSON/XML, unstructured text and email, and binary material such as images and audio. The attached slides compare this flexible repository with a more curated data warehouse. Data Lakes and Data Swamps

The motivation is uncertainty. A warehouse asks organizations to decide in advance what data to keep and how to structure it. A lake keeps more source material available when future questions, formats and users are not known. Cheap, large-scale storage also makes it practical to retain data that might become useful later.

The tradeoff is that data lakes move more interpretation and preparation to the analysis stage. Users often search and wrangle the data in a way that is closer to a broad search than a fixed report query. Raw data that is merely co-located is not necessarily integrated, consistent or useful.

Without governance, catalogs, semantic consistency and quality controls, a lake can become a data swamp: a large repository that end users cannot understand or use. The final slide therefore recommends controlling scope instead of collecting everything without a clear path to value.

Source map

PDF pageMaterial
1Definition, data formats and search/wrangling analogy
2Motivation: unknown questions, information silos and cheap storage
3Data-lake characteristics
4Data-warehouse properties
5Data-lake properties
6Advantages and self-service analytics
7Risks, governance and rogue queries
8Data swamps and the risk of abandonment
9Recommendation to collect less at the beginning

Warehouse and lake comparison

QuestionWarehouseLake
When is structure decided?Before loading (schema-on-write)During analysis (schema-on-read)
What is stored?Curated relational dataRelational, non-relational and raw source data
Main usersBusiness analystsData scientists and developers; analysts can use curated areas
Main analyticsBI, visualization and batch reportingSearch, discovery, machine learning and predictive analytics
Main riskDesign is too rigid or excludes useful dataData is difficult to find, interpret or trust

These are the source’s architectural distinctions. A real platform may contain curated zones, warehouse tables and lake storage together; the categories describe the dominant design choices rather than mutually exclusive products.

Worked example: retail and sensor data

Suppose a retailer stores purchase transactions, website clicks, customer reviews, shelf-camera images and refrigeration-temperature readings.

In a warehouse, the organization first defines a sales model, standardizes products and shops, and loads curated facts for recurring reports. A manager can quickly ask for monthly revenue by category.

In a lake, the raw transactions, click logs, reviews, images and sensor files can be retained together. A data scientist might later investigate whether temperature patterns and review text predict spoilage. That flexibility is useful because the question and required fields were not known when collection began. The analyst must still identify formats, clean values, join identifiers and validate meanings before trusting the result.

Exam and revision prompts

  • Why is a data lake useful when future questions are unknown?
  • Explain schema-on-write and schema-on-read with the same retail example.
  • Why does co-locating source data not guarantee semantic integration?
  • What controls prevent a data lake from becoming a data swamp?
  • Which users and workloads fit a warehouse, a lake, or a curated lake zone?

The attached slides are a short architectural overview. They do not specify a product implementation, a complete governance framework or a universal rule that one architecture is always better.

Source and scope

Elena Baralis, Data Lakes, Politecnico di Torino, Data Base and Data Mining Group, local DSTBD_6-DataLakes-ENG.pdf, 9 PDF pages. The PDF and figures remain local; this note paraphrases the source and marks the added retail example.