$ ls s3://lake/orders/_delta_log/

Data Lakehouse

A data lakehouse stores data once, as open files on cheap object storage like a data lake, but adds the features that used to require a data warehouse: ACID transactions, schemas, updates and deletes, fast SQL and fine-grained access control. The trick is an open table format (Apache Iceberg, Delta Lake or Apache Hudi) that keeps a transaction log next to the Parquet files. Any engine that understands the format (Spark, Trino, Flink, DuckDB, Snowflake, BigQuery, Databricks) can read and write the same table.

How a table format turns files into a table

A table is a folder of immutable Parquet data files plus metadata that says which files make up the table right now. Every write adds new files and then atomically commits a new metadata version. Step through the example (Delta Lake naming, with the 20-digit log file names shortened; Iceberg uses metadata files, manifest lists and manifests, but the idea is the same).

$ INSERT · INSERT · UPDATE · time travel · concurrent MERGE
Commits, snapshots and time travel
TRANSACTION LOG · _delta_log/DATA FILES · ParquetSNAPSHOTS 000.jsonINSERT · +f1 +f2 f1 f2 v0 = {f1, f2} 001.jsonINSERT · +f3 f3 v1 = {f1, f2, f3} 002.jsonUPDATE · −f2 +f4 f4 f2not in v2 v2 = {f1, f3, f4} SELECT * FROM orders VERSION AS OF 1 reads f1, f2, f3 · f2 is still on disk 003.jsonMERGE · +f5 (writer B) f5 writer B: 002.json already exists check conflicts, retry as 003.json
  1. The first write adds files f1 and f2 and commits log entry 000. The table version v0 is exactly the set of files the log lists.
  2. An insert writes f3, then commits 001. Readers see either v0 or v1, never half of a write: the commit is atomic.
  3. An UPDATE never edits a Parquet file. It rewrites the affected file: new file f4 holds f2's rows with the change applied, and the commit says "remove f2, add f4". (Deletion vectors can mark rows deleted instead of rewriting the whole file.)
  4. Time travel: old snapshots still point to existing files, so you can query or restore v1. Files leave disk only after VACUUM / snapshot expiry.
  5. Optimistic concurrency: writer B also tried to commit 002 and lost the race. It checks whether v2 touched the same data, then retries as 003.

The same design gives you schema enforcement and evolution (the schema lives in the metadata), partition pruning and file skipping from per-file min/max statistics, and an audit history of every change.

The three open table formats

Apache Iceberg Delta Lake Apache Hudi
Origin Netflix, 2017 Databricks, 2019 Uber, 2016
Metadata metadata.json → manifest list → manifests _delta_log JSON commits + Parquet checkpoints Timeline of commits in .hoodie
Strength Broadest engine support, hidden partitioning, REST catalog spec Tight Spark / Databricks integration, simple log Upserts and incremental pulls, record-level indexes
Catalogs Iceberg REST (Polaris, Nessie, Glue, Unity, Snowflake Open Catalog) Unity Catalog, Hive Metastore, Glue Hive Metastore, Glue

By 2026 Iceberg has become the common denominator across vendors, and Delta tables can be exposed to Iceberg readers through Delta UniForm. Pick based on your main engine and catalog; data in all three is still Parquet underneath. DuckLake is a newer design that keeps the metadata in a SQL database instead of files.

Lakehouse vs lake vs warehouse

Data lake Lakehouse Warehouse
Storage Open files Open files + table metadata Engine-managed
ACID updates and deletes No Yes Yes
Engines Many Many, on the same tables Usually one
Unstructured data and ML Yes Yes Limited
Lock-in Low Low Higher

Operating a lakehouse

Table formats move work from the database to you:

  • Compaction: streaming and frequent small writes create many small files. Schedule OPTIMIZE / rewrite_data_files.
  • Snapshot expiry and vacuum: old files stay until expired, which costs storage and matters for data deletion requests.
  • Clustering: sort or cluster by common filter columns (Z-order, liquid clustering, Iceberg sort orders) so min/max stats can skip files.
  • One catalog: the catalog is the source of truth for “where is the current metadata”. Two catalogs pointing at the same table is a recipe for lost commits.

Common mistakes

  • Treating the lakehouse as “just a lake” and skipping compaction until queries slow to a crawl.
  • Writing to the same table from engines that use different catalogs.
  • Forgetting that DELETE does not physically remove data until snapshots expire and files are vacuumed.
  • Over-partitioning, as in plain lakes. Iceberg’s hidden partitioning (for example days(ordered_at)) avoids many of these mistakes.

Learning Resources

Papers

Docs and specs

Books