Lesson · 8 pages · about 7 min
Data lake
Keep the raw orders as plain files in cheap object storage, then make them a table with a catalog. See what a query reads, and what goes wrong with no catalog or with thousands of tiny files.
- What it is
- A data lake is object storage (Amazon S3, Google Cloud Storage, Azure Blob Storage) holding raw files in open formats, plus a catalog that says which files make up which table.
- What it is for
- Storage is cheap and holds any kind of file, and many tools (Spark, Trino, Athena, DuckDB) can read the same files. Raw data kept there can be cleaned again whenever the cleaning changes.
- Use it when
- When you keep raw data for ELT, have lots of it or many shapes of it (JSON, CSV, logs, images), or want several engines to read the same copy.
- Not when
- When you need to change single rows, or need many writers and readers at once to always agree: plain files have no transactions (see the next lesson).
Words you’ll learn
- ETL
- ELT
- Data lake
- Object storage
- Partition
- Data swamp
- Data catalog
- Schema on read
- Row
- Parquet