What Is a Data Lake - and When You Actually Don't Need One

A data lake is a pile of files in cheap object storage, plus enough metadata that query engines can treat those files as tables. That is genuinely most of what a data lake is - the interesting part is not the storage, it is the decision to defer schema decisions until read time instead of making them at write time.

It exists because of a specific failure mode. In a classic warehouse pipeline, you decide the schema before you load anything, so every new field, every new source, and every analyst question that your model did not anticipate turns into a migration. Teams started dumping raw data to object storage first and modelling later, because storage got cheap faster than schema design got easy.

The cost of that deferral is the whole story. You traded a write-time constraint for a read-time one, and read-time constraints are enforced by nobody. That is why the phrase "data swamp" exists.

This page covers the mechanism - storage, format, catalog, engine, governance - and then the part most vendor material skips: the scale below which you should just use Postgres. System with various wires managing access to centralized resource of server in data center

ConceptData Lake
Where it sitsData platform storage layer - sits underneath your query engines and above raw object storage
In one sentenceA data lake stores raw files in cheap object storage and applies schema when you query them, rather than when you load them.

The 60-Second Answer

What it does: stores raw and semi-structured data as files in object storage, with a catalog so engines can query those files as tables.

The one problem it solves: you can land data whose schema you do not fully understand yet, and keep it at a cost per terabyte that makes retaining everything defensible.

The one cost it adds: nothing enforces correctness at write time, so quality, schema drift, and discoverability become your team's ongoing operational work rather than the storage layer's job.

Decision shortcut: if your data fits in one database that a single team queries, you do not need a data lake. If multiple teams need the same raw history in different shapes, and the data is large enough that warehouse storage pricing is a line item you argue about, you probably do.

How It Actually Works

1. The substrate is object storage, not a filesystem

Flat keys, HTTP, no rename

A data lake sits on object storage - a flat namespace of immutable blobs addressed by key, reachable over HTTP. There are no directories, only key prefixes that tools display as folders, and there is no cheap rename because a rename is a copy plus a delete.

This is the choice that makes everything else possible. Object storage decouples capacity from compute entirely: you can hold petabytes while running zero query nodes, and spin up compute only when someone asks a question. A database cannot do that, because its storage and its query process are the same deployment.

⚠️ In production — The missing atomic rename is the source of most surprises. Pipelines that write output by assembling files in a temp prefix and then "moving" them are doing an O(n) copy, and if the job dies halfway, readers see a partially committed dataset. This is exactly the hole that table formats were invented to plug, and it is why hand-rolled lakes end up with downstream consumers reading half-written partitions.


2. Files are columnar and compressed, which is where the query speed comes from

Column layout beats row layout here

Raw data lands in whatever form it arrives - JSON, CSV, logs - but anything queried repeatedly gets rewritten into a columnar format. Columnar layout stores all values of one column contiguously, so a query touching three columns out of two hundred reads roughly three columns' worth of bytes instead of every row.

Columnar files also carry per-block statistics, typically min and max values per column chunk. An engine reads the footer, sees that a block's maximum timestamp is earlier than your WHERE clause lower bound, and skips the block without decompressing it. Combined with similar values sitting next to each other and compressing well, this is why scanning object storage over HTTP can be competitive with local disk on a row store.

⚠️ In production — Small files destroy this. Every file costs a metadata lookup and a footer read, so a stream that lands one file per minute produces a dataset where the per-file overhead dominates the actual scanning. Compaction - periodically rewriting many small files into fewer large ones - is not an optimisation you do later, it is a scheduled job you need from the start.


3. Partitioning is how you avoid reading everything

Prefix layout as a crude index

Files are laid out under key prefixes that encode a column value, most often time:

events/dt=2026-10-28/hour=14/part-0001.parquet
events/dt=2026-10-28/hour=15/part-0001.parquet

A query filtering on dt lets the engine list only the matching prefixes and never ask about the rest. Partition pruning is the single biggest lever on cost and latency in a lake, because the alternative is a full scan of the dataset.

The design rule is to partition on the column that appears in nearly every query's filter, and nothing else.

⚠️ In production — Over-partitioning is the common failure, and it is worse than under-partitioning. Adding a high-cardinality column like user ID to the partition key produces millions of tiny directories, and now simply listing the dataset to plan a query is slow enough to dominate execution. The other trap: queries that filter on a derived expression rather than the raw partition column often cannot be pruned at all, so a filter you think is selective silently reads the whole table.


4. The catalog is what turns files into tables

Metadata, not data

A metastore or catalog holds the mapping from a table name to its location, its schema, its partition layout, and its format. Without it, your lake is a directory of blobs that each consumer has to interpret by convention, which means every team invents a slightly different interpretation.

The catalog is also the integration point. It is the reason two different query engines can read the same table and agree on what the columns mean, and it is where table-level access control and discovery attach.

⚠️ In production — The catalog is both a hard dependency and a shared mutable thing, which is a bad combination operationally. If it is down, every engine loses the ability to resolve tables even though the data is perfectly intact. And because the catalog records the schema while the files carry their own schema, the two drift: someone rewrites files with a changed column type, the catalog still claims the old type, and queries fail or silently return nulls depending on the engine's tolerance.


5. A table format adds the transactional guarantees object storage lacks

Manifests give you atomic commits

Raw files plus a catalog gives you no atomicity, no safe concurrent writes, and no way to see the dataset as it was yesterday. Open table formats fix this by writing a manifest - a list of exactly which files make up the current version of the table - and making a commit a single atomic pointer swap to a new manifest.

Once file membership is explicit metadata rather than "whatever is under this prefix", you get the properties a warehouse always had: a reader sees one consistent snapshot, a failed write leaves no trace, row-level deletes are expressible, and schema changes are recorded as versions rather than applied destructively. Querying an older snapshot becomes reading an older manifest.

⚠️ In production — Old snapshots pin the files they reference, so nothing is reclaimed until you expire them - a table you "deleted rows from" can keep growing. Expiring snapshots and cleaning orphaned files are maintenance jobs you must schedule, and they are usually the jobs nobody owns. Also: the atomicity guarantee only holds for writers going through the table format. One pipeline writing files directly into the prefix is enough to make the manifest a lie.


6. Compute is separate and brought to the data

Stateless engines, shared storage

Query engines in a lake architecture are stateless relative to storage. An engine asks the catalog what files a table consists of, prunes partitions and blocks using statistics, fetches byte ranges over HTTP, and executes. It owns nothing durable.

This gives you two things a coupled database cannot. You can run several engines against one copy of the data - a batch framework for transforms, an interactive SQL engine for analysts, a Python process for training - and you can size each independently, scaling the interactive cluster for business hours without touching anything else.

⚠️ In production — The cost shifts from storage to request patterns, and that is harder to predict. Many small range requests across millions of objects can make API call volume and egress a bigger bill than the bytes at rest, and a single badly written full-table scan can cost real money with no quota stopping it. Engines also disagree at the edges - type coercion, null handling, timestamp semantics - so a query validated on one engine is not guaranteed to produce identical results on another reading the same files.


7. Zones separate raw from trustworthy

Raw, cleaned, curated

Because nothing is validated on write, mature lakes impose structure by convention: a raw zone holding exactly what arrived, append-only and never edited; a cleaned zone with types enforced, deduplicated, and converted to columnar; and a curated zone of modelled tables that analysts and dashboards are allowed to depend on.

The raw zone is the part that justifies the architecture. Keeping the original bytes means a bug in your parsing logic is recoverable - you fix the transform and reprocess - which is precisely the option a write-time-schema pipeline gives up.

⚠️ In production — Zones are a naming convention, not a mechanism, so they hold only as long as the team enforces them. The predictable decay is a dashboard that queries the raw zone directly because the curated table was missing a field and someone was in a hurry. Now a change to an upstream producer's JSON breaks a business report, and the layering that was supposed to absorb that change is doing nothing.


8. Governance is bolted on, and that is the real tax

Lineage, access, retention

A warehouse knows what its tables are, who touched them, and what depends on them, because every write went through it. A lake has to reconstruct all of that: a catalog for discovery, column and row level access policies, lineage tracking across pipelines, and retention rules to actually delete personal data on request.

None of this is optional once the lake holds data about people. Deletion is the sharpest case - object storage files are immutable, so honouring a deletion request means rewriting the files that contain those rows, which is why table formats with row-level delete support matter well beyond their performance story.

⚠️ In production — This is the budget line that gets omitted from the cheap-storage argument. Storage cost per terabyte may be a fraction of warehouse pricing, but discoverability, access review, lineage, and deletion compliance are engineering work that scales with the number of datasets and teams. Teams that adopt a lake purely to cut the storage bill usually find the savings consumed by the platform work needed to keep it usable.

Female student writing circuit diagrams and logic gates in an educational setting on a whiteboard. ## Where You Meet It
  • A product company lands clickstream events from a message queue into object storage as hourly partitioned files, then runs nightly jobs that build curated session tables. Analysts query the curated tables; the data science team reads the raw events directly because they need fields nobody modelled. The data lake is what lets those two consumers share one copy of history without the modelling team becoming a bottleneck for every experiment.
  • A bank retains transaction and log data for years to satisfy audit requirements. Almost none of it is ever queried, but all of it must be producible on request. Keeping it in a data lake rather than warehouse storage is a straightforward cost decision - cold bytes that are occasionally scanned are exactly the shape object storage is priced for.
  • An ML team needs training features computed from the same event history the BI team reports on. They read the curated tables with a Python engine while BI runs SQL against them, and because both engines resolve tables through the shared catalog, a column definition change is visible to both. Without the lake, the ML team would be maintaining an export pipeline and a divergent copy.
  • An IoT platform ingests sensor readings whose payload schema changes whenever a device firmware ships. Landing the raw payloads untouched means a firmware change does not break ingestion; the breakage is deferred to the transform, where it can be fixed and the affected window reprocessed. A write-time schema pipeline would have dropped or rejected those records at the door.
  • A company that grew by acquisition has five source systems with overlapping customer definitions. The lake is used as the landing area where all five arrive in their native shape, and reconciliation happens in transforms rather than in a schema negotiation that would have to conclude before any data could be loaded.

When You Actually Need It

  • Multiple teams need the same raw history in different shapes, and you are currently maintaining per-team export pipelines to serve them.
  • You regularly need to answer questions about data you already collected but did not model - and today the answer is "we dropped those fields at ingest".
  • Your data volume is large enough that warehouse storage pricing is a recurring argument, and most of those bytes are scanned rarely or never.
  • Ingest schemas change without your control - third-party APIs, device firmware, partner feeds - and a strict write-time schema would mean rejecting records or shipping a migration per change.
  • You have workloads that are not SQL: training jobs, notebooks, or feature pipelines that want to read files directly rather than through a database connection.
  • Your compute demand is spiky and uneven across workloads, so paying for storage and query capacity as one coupled unit is visibly wasteful.

When You Don't

  • Your data fits in a single database. If the whole dataset is in the low terabytes and a managed Postgres or MySQL replica answers your analytical queries acceptably, use that. Columnar extensions and a read replica will take you further than most teams expect, and the operational surface is one system rather than five.
  • One team owns both the pipelines and the questions. The lake's advantage is decoupling producers from consumers; with a single team on both sides there is nothing to decouple, and schema-on-read just means you are deferring work to whoever runs the query - which is you.
  • Your data is already well-structured and the schema is stable. If everything arrives as clean relational rows from systems you control, pay for a warehouse and skip the modelling-by-convention layer. You are buying flexibility you will never exercise and inheriting governance work you cannot avoid.
  • You need low-latency point lookups or serving traffic. Lakes are built for scanning ranges of files, not for fetching a row by key in single-digit milliseconds. Use an operational database or a key-value store; querying a lake from a request path is the wrong shape of read.
  • You need transactional writes with real concurrency - many small updates, read-your-writes, enforced constraints. Even with a table format, commits are coarse-grained snapshot swaps. That is an OLTP database's job.
  • Nobody owns the platform. A lake without a team responsible for compaction, snapshot expiry, catalog hygiene, and the raw-to-curated boundary becomes unqueryable within a year. If you cannot name that owner, a managed warehouse that enforces structure for you is the honest choice. Detailed view of fiber optic cables connected to a server rack, showcasing modern technology.

What People Get Wrong

"A data lake replaces the data warehouse."

In practice the lake becomes the storage and raw-retention layer, and warehouse-style modelled tables still get built on top of it - either inside a warehouse that reads the lake, or as curated tables in the lake itself. The real data lake vs data warehouse distinction is where schema is enforced, not which product you buy. Dimensional modelling does not become unnecessary just because storage got cheap; the questions that motivated it are unchanged.

"Schema-on-read means we do not have to think about schema."

It means the thinking moves from one place where it was enforced to every query where it is not. Someone still has to know that a field changed type last March. Deferred schema work is unassigned schema work, and it is paid by whoever is debugging a wrong number at the time.

"It is cheap because object storage is cheap."

Bytes at rest are cheap. Query request volume, egress, compaction compute, catalog operation, and the engineering time for lineage, access control, and deletion compliance are not, and they scale with dataset and team count rather than with volume. Teams adopting a lake to cut a storage bill routinely find the total cost flat and the operational complexity higher.

"We can just dump everything in and figure it out later."

This produces the thing people call a data swamp - data nobody can find, nobody can interpret, and nobody will delete because nobody knows whether it matters. Retention and catalog decisions have to be made at ingest time even though schema decisions do not; the one thing you cannot defer is recording what something is and how long you intend to keep it.

Why It Was Built This Way

The forcing constraint was that schema design has to happen before you know what the data is for, and that ordering was increasingly impossible to satisfy. In the warehouse model, loading data requires a target schema, so every new source means a modelling exercise and every new question means a migration. That is fine when sources are a handful of internal systems changing quarterly. It falls apart when sources are event streams, third-party APIs, and devices that change shape without asking you.

The second constraint was economic. Coupled systems price storage and compute together, so retaining data you rarely query means paying for query capacity you do not use. Object storage broke that coupling - durable, effectively unbounded, priced per byte, and addressable by stateless compute over HTTP. Once you can keep ten years of raw events for less than the modelling effort would cost, retaining everything and deciding later becomes the rational default.

What was traded away is enforcement. A database is valuable partly because it refuses things: bad types, constraint violations, concurrent writes that would corrupt state. A pile of files in object storage refuses nothing. You gained the ability to land anything and lost every guarantee that came from the write path being a chokepoint - atomicity, consistent reads, a single source of truth about schema, and an automatic record of what exists. The industry then spent years rebuilding those guarantees on top as table formats and catalogs, which is why a mature lake looks increasingly like a warehouse with its storage layer pulled out and made explicit. That convergence is the honest summary of data lake vs data warehouse: the same guarantees, re-implemented at a different layer, with you responsible for the parts the database used to handle.

So the judgement is not about capability. It is about whether the decoupling buys you something - multiple consumers, unstable schemas, cheap cold retention - that outweighs owning the enforcement yourself.

Related Briefs

What to Read Next

  • data lake vs data warehouse
  • what is a lakehouse
  • schema on read vs schema on write
  • open table formats explained

A data lake is a trade: you give up write-time enforcement to gain cheap retention and the ability to serve consumers whose needs you cannot predict. That trade pays off when several teams need the same raw history in different shapes and the schemas are not yours to control. Below that - one team, stable schemas, data that fits in a database - the simple option is genuinely the correct one, and adopting a lake just relocates the work to your query authors and whoever is on call for the catalog.

댓글

이 블로그의 인기 게시물

What Is a Message Queue - and When You Actually Don't Need One

What Is a Bloom Filter - and When You Actually Don't Need One

When to Use GraphQL Over REST API - and When REST Is Still the Right Call