Data Lakehouse Architecture: Iceberg, Delta, and AI
Understand data lakehouse architecture, Iceberg and Delta Lake tradeoffs, Spark SQL examples, snapshot retention, and the limits of governed AI.
By jackey.ye · Updated 2026-11-27
A data lakehouse is an architectural pattern that adds database-like tables, transactions, and governance on top of cheap object storage. Apache Iceberg and Delta Lake are open table formats that describe those tables; they are not query engines, and they don't hand you governance or AI by default.
That distinction matters, because the word "lakehouse" gets attached to four separate decisions: where bytes live, how engines read and write them, how a catalog tracks tables, and how access is enforced. Get those layers straight and most of the confusion falls away.
What a Lakehouse Actually Is
A lakehouse isn't a product you buy or a single engine you install. It's a way of arranging parts you already have so that one copy of data on object storage can serve BI, streaming, and machine learning without constant copying.
The pattern rests on four layers, and each one can be swapped on its own:
Object storage holds data files in open columnar formats such as Parquet or ORC, plus auxiliary files. It's cheap and durable, but it has no idea what a table is.
A transaction metadata layer — Iceberg or Delta Lake — records which files form a table at a given moment, along with snapshots, schemas, and partition specs.
A query engine such as Spark, Trino, or Flink reads and writes those tables.
A catalog maps human-friendly names to table metadata so multiple engines agree on what a table is.
Iceberg may also write Puffin files, which store auxiliary statistics for query planning rather than ordinary row data.
Because the layers are separable, two teams can both run a lakehouse while sharing almost no components. The label describes a shape, not a vendor.
The table formats are not engines
Here's the part that trips people up. Apache Iceberg and Delta Lake are specifications and libraries. Iceberg defines table metadata, snapshots, and partition specs; Delta Lake defines a transaction log layered over Parquet. Neither one executes SQL on its own, and neither enforces row-level permissions by itself. You still pick an engine and a governance layer around them.
Mixing up the format with the engine creates expectations — faster queries, built-in masking, automatic AI readiness — that the format was never designed to meet.
Warehouse, Lake, and Lakehouse Compared
The three terms describe different tradeoffs, not a maturity ladder. A warehouse optimizes for governed, high-concurrency SQL over modeled data. A lake optimizes for cheap retention of raw data. A lakehouse tries to give you table semantics on lake storage.
Dimension | Data Warehouse | Data Lake | Lakehouse |
|---|---|---|---|
Storage | Often managed by the vendor; separation of compute and storage varies by product and deployment | Open object storage | Open object storage |
Data types | Structured and modeled | Any, usually raw | Any, with table schemas |
Write pattern | Load, then query | Write files directly | ACID table writes |
Read latency | Steady on tuned workloads | Variable without tuning | Engine and layout dependent |
Strongest workload | Governed BI at high concurrency | Data science and cheap history | Mixed BI, streaming, and ML on one copy |
Where cost lands | Depends on the deployment: some bill compute and storage separately, others bundle them | Storage cheap, engineering heavy | Storage cheap; compute and governance dominate |
Weak spot | Rigid schema, costly scale-out | No transactions, weak governance | Depends on catalog, format, and compaction discipline |
Treat any single speed or savings figure as a hypothesis to test on your own workload, not a promised outcome. File sizes, concurrency, and query shape move the result far more than the label does, which is why a universal benchmark tells you very little.

The Layers That Decide Your Results
Two lakehouses can look identical on a slide and behave nothing alike, because the behavior lives in the layers. If you're weighing this against a Microsoft stack, the lakehouse vs data warehouse decision guide works through the same tradeoffs for a Power BI deployment.
Engine
The engine determines query planning, pushdown, and joins. Predicate pushdown, broadcast joins, vectorized execution, and bucketing all live here, and engines implement them unevenly. The same Iceberg table can feel instant on one engine and sluggish on another.
Catalog
The catalog is where cross-engine agreement lives. It stores table names, locations, and pointers into format metadata. With a shared catalog, Spark writes and Trino reads the same table definition; without one, each engine keeps its own view and drift begins.
Object storage
Object storage gives durability and near-limitless scale, but its consistency behavior matters and it bills per request. Metadata reads, small-file scans, and heavy listing calls all show up on the storage bill in ways a warehouse never exposed.
Transaction metadata
This is the layer that makes the pattern work. Snapshots give you isolation and time travel; optimistic concurrency lets multiple writers commit without locking a whole table; and schema evolution lets columns change without rewriting every file.

Concurrency, Retention, and Compaction
Three operational details separate a lakehouse that ages well from one that quietly decays.
Concurrency. Writers commit optimistically: they prepare a new snapshot and retry if another commit landed first. High-write workloads such as streaming ingestion will hit conflicts, so partitioning and commit strategies need to match update patterns.
Snapshot expiration and retention. Time travel only works while the snapshots you want still exist. Iceberg doesn't delete snapshots simply because retention properties are set; old snapshots go away when you schedule explicit maintenance, such as the expire_snapshots procedure, or when a managed service applies its own policy. Once a snapshot has been removed, VERSION AS OF and TIMESTAMP AS OF can no longer reach it, so treat retention settings as a precondition for maintenance rather than as deletion itself. If an audit needs a specific point in time, export what you must keep.
Small files and compaction. Streaming writes and frequent small appends create thousands of tiny files, which inflate metadata and slow scans. Compaction rewrites them into larger files, and it has to run on a schedule rather than by hope. Skipping it is the most common reason a new lakehouse slows down after a few months.
Governance and Governed AI Limits
Permissions don't come from the table format. Column masking, row-level security, and audit trails come from the catalog and the engines or services around it. Two engines sharing one Iceberg table can enforce completely different policies unless you route both through a common governance layer.
Governed AI inherits the same limitation. An agent reading a lakehouse table sees whatever the query returns; the format won't redact sensitive columns, and it won't stop a model from memorizing what it reads. If you plan to point assistants at lakehouse data, put permissions, masking, and lineage in place first. Layering trustworthy bronze, silver, and gold tables is a good starting discipline, and the medallion implementation checklist hub collects the practical steps for doing that.
A Minimal Iceberg Example in Spark SQL
The snippet below is illustrative and has not been executed. Confirm the connector version, extension settings, and catalog configuration in your own environment before running it.
Prerequisites for Spark 3.5:
Apache Spark 3.5 built for Scala 2.12.
A matching Iceberg runtime connector, for example
org.apache.iceberg:iceberg-spark-runtime-3.5_2.12, at the same version as your Iceberg release (1.6.x and later follow this pattern).Iceberg SQL extensions enabled:
spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions.A configured catalog. This example uses a Hadoop-backed catalog named
localwith a writable local warehouse:spark.sql.catalog.local=org.apache.iceberg.spark.SparkCatalog,spark.sql.catalog.local.type=hadoop, andspark.sql.catalog.local.warehouse=file:///tmp/iceberg-demo.
-- All statements below are illustrative and were not executed as written.
CREATE NAMESPACE IF NOT EXISTS local.db;
CREATE TABLE local.db.orders (
order_id BIGINT,
placed_at TIMESTAMP,
region STRING,
amount DECIMAL(10, 2)
)
USING iceberg
PARTITIONED BY (days(placed_at), region);
-- Seed one row. The inserted value is the business event time,
-- not the commit time of the snapshot that holds it.
INSERT INTO local.db.orders VALUES
(1, TIMESTAMP '2026-11-20 09:15:00', 'SG', 120.50);
-- The current read returns exactly one row:
-- order_id 1 | placed_at 2026-11-20 09:15:00 | region SG | amount 120.50
SELECT * FROM local.db.orders;
-- List the real commit timestamps and snapshot IDs, newest first.
SELECT snapshot_id, committed_at
FROM local.db.orders.snapshots
ORDER BY committed_at DESC;
After running those statements, copy the values the metadata table actually returned into the templates below. Nothing in this block is meant to be run as written.
-- TEMPLATE ONLY - not executable. Substitute your own copied values.
/*
-- Point-in-time read. Use a commit timestamp you captured above,
-- one that falls after the write you want to inspect.
SELECT * FROM local.db.orders
TIMESTAMP AS OF '<your-captured-committed_at>';
-- Snapshot read. Use a snapshot_id you captured above.
SELECT * FROM local.db.orders
VERSION AS OF <your-captured-snapshot-id>;
*/
A few details matter here. TIMESTAMP AS OF resolves to the snapshot whose commit time was current at that wall-clock instant, so the timestamp comes from committed_at in the snapshots table, not from placed_at in your data. Event timestamps and commit timestamps are different things, and a query built from the former will often miss the version you meant. VERSION AS OF takes an Iceberg snapshot ID, not a sequential row or table version.
Dialect differences bite too. Iceberg's Spark SQL uses TIMESTAMP AS OF and VERSION AS OF; the official Iceberg Spark DDL and Spark queries references cover the current syntax. Other engines vary — some use FOR SYSTEM_TIME AS OF — so don't assume a query that works in one dialect runs unchanged in another. And remember that time travel is bounded by what has actually been expired: once snapshot maintenance removes a version, no dialect can bring it back.
FAQ
Is a lakehouse a product or an architecture?
It's an architecture. A lakehouse describes how object storage, a table format, a query engine, and a catalog fit together so one copy of data serves many workloads. Vendors bundle those layers, but the pattern itself isn't tied to any single one of them.
Are Iceberg and Delta Lake query engines?
No. They're open table formats — specifications and libraries that define how data, snapshots, and schema changes are recorded. They need an engine such as Spark or Trino to run SQL, and they need a catalog to be shared across engines.
Why doesn't my time-travel query return the old data?
Several things can cause it. The commit you wanted may never have succeeded because a concurrent writer won the race, the query may point at a different catalog or table than you think, or the timestamp may fall before the table's first snapshot, which returns nothing rather than an error in some engines. Storage permissions on the metadata or data files can also block reads, and yes, the snapshot may have been removed by expiration maintenance. Start with the snapshots table to see which versions actually exist.
Does a table format guarantee governance or safe AI?
No. Permissions, masking, row-level security, and lineage come from the catalog and the surrounding services, not from Iceberg or Delta themselves. Any AI tool pointed at lakehouse data still needs those controls applied first.
See Also
Lakehouse vs Data Warehouse for Power BI: A Buyer's Decision Guide
Medallion Architecture Implementation Checklist: A Practical Hub