Skip to content
Back to blog

Data Lakehouse with Apache Iceberg: A Guide

How an Apache Iceberg lakehouse works underneath, from the metadata tree and atomic commits to pruning, engines, and catalogs in 2026, plus a maintenance runbook, the real storage math, and the operations layer that keeps tables fast.

Data Lakehouse with Apache Iceberg: layered architecture with a control plane connecting catalogs, query engines, and object storage over Iceberg tables.

A data lakehouse with Apache Iceberg keeps analytical tables as Parquet files in object storage you own, tracks every table version in Iceberg metadata, and lets any engine that speaks Iceberg read and write those tables transactionally through a shared catalog. You get warehouse guarantees (atomic commits, schema evolution, time travel, safe concurrent writers) on open files, and Spark, Trino, Flink, Snowflake, Athena, and DuckDB all work on the same copy.

That changes the shape of a data platform. The nightly copy from lake to warehouse goes away, BI and ML read the same governed tables, and choosing an engine becomes a per-workload decision instead of a migration. It also moves a job onto your team that a warehouse vendor used to do quietly. Iceberg never edits a file in place, so every commit adds data files, metadata files, and often delete files. How fast a query runs depends on the state those commits leave behind, and none of the four layers you assemble is responsible for that state.

Production lakehouses end up adding an operations layer for exactly that reason. A control plane such as LakeOps sits above your catalogs, the Iceberg tables in object storage, and the engines that query them. It connects through the catalog and reads Iceberg metadata (snapshots, manifests, and per-file statistics), classifies each table's health, runs compaction and cleanup in dependency order on its own engine, and records every operation. It doesn't copy data, replace a catalog, or sit in the query path, and it decides from table state, optionally inside a cron window.

This guide walks through how an Iceberg lakehouse works underneath: the metadata tree, what happens on a commit, and how a query skips data. It then covers where engines and catalogs stand in 2026, how bronze, silver, and gold tables change as they're written, and a maintenance runbook with the real procedure defaults. It ends with what changes at 2,000 tables, the cost math, and a build sequence.

The five layers of an Iceberg lakehouse

Most diagrams show four layers. Running one in production adds a fifth, and naming it up front makes the rest of the architecture easier to reason about:

LayerWhat it doesCommon choicesWhat it doesn't do
Object storageHolds Parquet data files, delete files, and all Iceberg metadata filesAmazon S3, S3-compatible stores, GCS, ADLSKnow anything about tables
Table formatDefines snapshots, schemas, partition specs, sort orders, and per-file statisticsApache Iceberg (v2 in most production tables, v3 rolling out)Decide when files should be rewritten
CatalogStores the pointer to each table's current metadata and arbitrates commitsAWS Glue, Apache Polaris, Project Nessie, Lakekeeper, Unity Catalog, Snowflake HorizonMaintain the tables it points to
EnginesRead, write, and transform tablesSpark, Flink, Trino, Snowflake, Athena, DuckDB, StarRocksClean up after other engines
OperationsMeasures table health and runs compaction, expiry, delete cleanup, and manifest rewritesSpark jobs and a scheduler, a managed service per platform, or a control planeServe queries

The right-hand column is the important one. Each layer is excellent at its own job and explicitly not responsible for the next one's. The operations layer exists because table state falls between all of them.

Architecture diagram of an Iceberg lakehouse with a control plane above catalogs, query engines, and Iceberg tables in Amazon S3
Storage, table format, catalog, and engines, with the operations layer above them. It reads the same metadata the engines read and commits through the same catalog.

Storage is the foundation, and its main property is independence. Shut down every engine and the tables are still there; add an engine tomorrow and it reads the same bucket. The design decisions inside each layer (catalog topology, security boundaries, ingestion paths) are covered layer by layer in the Iceberg lakehouse architecture guide. The rest of this guide follows the data instead.

Inside an Iceberg table: the metadata tree

An Iceberg table is a tree of files in object storage, with one pointer held by the catalog. From the top, as the Iceberg table spec defines it:

  1. 1.Catalog pointer. The catalog stores the location of the table's current metadata file. Swapping this pointer is the commit.
  2. 2.Table metadata file (metadata.json). Schemas, partition specs, sort orders, table properties, and the list of snapshots with their parents. Every commit writes a new one.
  3. 3.Manifest list. One per snapshot, listing the manifests that make up that version of the table, with partition-range summaries that let a planner skip whole manifests.
  4. 4.Manifests. Avro files listing data files or delete files, with each file's partition values, record count, and per-column value counts, null counts, and lower and upper bounds.
  5. 5.Data and delete files. Parquet files holding rows, and files describing rows that were deleted.

Two consequences fall out of this design. Reads never need a directory listing, because the manifests already enumerate every file. And a commit never touches existing files: it writes new data files, new manifests, a new manifest list, and a new metadata file, then moves one pointer. Version 4 of the spec, under active development and not yet adopted, replaces the manifest list with a single root manifest per snapshot, so small commits write far fewer metadata files.

Every table exposes this tree as queryable metadata tables, which is where all health measurement starts. In Spark:

sql
1-- Table versions, newest first2SELECT committed_at, snapshot_id, operation,3       summary['added-data-files']  AS added_files,4       summary['total-data-files']  AS total_files,5       summary['total-delete-files'] AS delete_files6FROM   prod.sales.orders.snapshots7ORDER  BY committed_at DESC8LIMIT  10;9 10-- Manifests in the current snapshot11SELECT COUNT(*) AS manifests,12       SUM(added_data_files_count + existing_data_files_count) AS files_tracked13FROM   prod.sales.orders.manifests;

What happens on a commit

Every writer, whether a Flink checkpoint, a Spark MERGE, or a DuckDB INSERT, follows the same protocol:

  1. 1.Read the current metadata through the catalog and note the snapshot it's based on.
  2. 2.Write new Parquet files (and delete files, for row-level changes) to object storage.
  3. 3.Write manifests for those files, a manifest list for the new snapshot, and a new metadata.json.
  4. 4.Ask the catalog to swap the pointer, on the condition that the table is still at the snapshot from step 1.

Step 4 is optimistic concurrency. In the Iceberg REST catalog API, a commit carries requirements, such as assert-ref-snapshot-id, alongside its updates. If another writer committed first, the requirement fails, and the writer re-reads the new state, checks whether its change still applies, and retries. Appends almost always retry cleanly. Two writers rewriting the same files (a compaction job and a MERGE on the same partition) are the classic conflict, and a failed attempt leaves files behind that the next cleanup has to find.

The REST protocol adds two features that matter at platform scale. Credential vending lets the catalog return short-lived, table-scoped storage credentials, so engines don't need a broad bucket key. A multi-table transaction endpoint commits changes to several tables atomically. Engines and catalogs support both unevenly, so check them per pair rather than assuming them from the spec.

Row-level changes: copy-on-write or merge-on-read

UPDATE, DELETE, and MERGE can be written two ways. Copy-on-write rewrites every data file containing a changed row: expensive writes, clean reads. Merge-on-read writes small delete files instead and makes every reader apply them: cheap writes, slower reads until something rewrites the data. Iceberg v2 has position deletes (file path plus row positions) and equality deletes (rows matching key values, which Flink upserts produce). Iceberg v3 replaces position delete files with deletion vectors, a bitmap per data file stored in a Puffin file.

Which mode a table gets is mostly decided by the engine, not the table. Spark follows write.delete.mode, write.update.mode, and write.merge.mode. Athena always uses merge-on-read with position deletes, regardless of those properties. On a table written by several engines, delete files are a normal state that maintenance has to keep bounded, not an exception.

How a query skips data: the pruning stack

A lakehouse query is only competitive with a warehouse when it reads a small fraction of the table. Iceberg and Parquet give the planner several layers to skip data, and they work at different granularity:

  1. 1.Partition pruning (coarse). Hidden partitioning applies a transform (day(ts), bucket(16, id), truncate(10, sku)) at write time, so a filter on ts skips whole partitions without users writing partition columns. Manifest-list summaries let the planner skip whole manifests too.
  2. 2.File pruning (fine). Manifests hold each file's lower and upper bound per column. A filter skips any file whose range can't match. This only works if related rows are clustered into the same files, which is what a sort order does.
  3. 3.Multi-column clustering. Z-order (or a Hilbert curve) maps two to four columns onto one sort order, so filters on any of them skip files. It weakens as columns are added.
  4. 4.Row-group pruning. Parquet keeps min/max statistics per row group and column in the file footer, and optionally a page index, so a reader skips row groups inside a file it had to open.
  5. 5.Bloom filters. For high-cardinality equality lookups (WHERE order_id = ...) that min/max ranges can't prune.

Partitioning decides which groups of files exist. Clustering decides whether the files left after partition pruning can be skipped. They're separate decisions, and conflating them is the most common layout mistake. A table partitioned by day and never sorted still has every file in a day spanning every customer_id, so a filter on customer_id opens all of them. Binpack compaction fixes the file count and doesn't change that, because it merges files without reordering rows.

Both are declared on the table and applied by writers and compaction:

sql
1CREATE TABLE prod.sales.orders (2  order_id     BIGINT,3  customer_id  BIGINT,4  region       STRING,5  amount       DECIMAL(12,2),6  order_ts     TIMESTAMP7)8USING iceberg9PARTITIONED BY (day(order_ts))10TBLPROPERTIES (11  'write.target-file-size-bytes' = '536870912',12  'write.distribution-mode'      = 'hash',13  'write.parquet.bloom-filter-enabled.column.order_id' = 'true'14);15 16-- Cluster rows inside each partition for file pruning17ALTER TABLE prod.sales.orders WRITE ORDERED BY customer_id, order_ts;

A sort order helps its leading column most and later columns progressively less. When two to four columns are filtered about equally, Z-order through a sort rewrite is the better fit. Trino declares the same intent with the sorted_by table property. Iceberg also stores optional table statistics in Puffin files (NDV sketches from compute_table_stats in Spark), but engines use those for cost-based join planning, not for skipping files. The compaction strategies guide goes deeper on choosing between binpack, sort, and Z-order.

Engines and catalogs in 2026

The promise is any engine on any table. The practice is that engines differ in what they write, and those differences decide how a shared table degrades:

EngineTypical roleWritesRow-level changes produce
SparkBatch ETL, MERGE, maintenance proceduresFull DML and DDLCopy-on-write by default; merge-on-read when the write-mode properties say so
FlinkStreaming ingestion, CDCAppends and upserts, committed on each checkpointEquality deletes in upsert mode
TrinoInteractive SQL, BIFull DMLPosition deletes (deletion vectors on v3, still experimental)
AthenaServerless ad hoc SQL on AWSFull DML through GluePosition deletes, always merge-on-read
SnowflakeGoverned BI and SQLSnowflake-managed tables, and externally managed tables through catalog-linked databasesDepends on table version and its merge-on-read setting
DuckDBNotebooks, CI, single-node jobsInserts, updates, deletes, and MERGE through an attached REST catalogPosition deletes
StarRocksLow-latency OLAPINSERT and INSERT OVERWRITE; DELETE in recent versionsEngine-specific; check your version

DuckDB is the biggest change since 2025: it went from read-only to a real Iceberg writer through REST catalogs, which makes it a practical tool for small jobs and tests against production catalogs.

On the catalog side, the Iceberg REST protocol won. Apache Polaris graduated to a top-level Apache project in February 2026, Lakekeeper and Nessie implement the same API, AWS Glue and S3 Tables expose REST endpoints, Unity Catalog accepts external Iceberg reads, and writes to its managed Iceberg tables, and Snowflake Horizon serves externally managed tables over REST. Federation is the newer layer: Glue can mount remote REST catalogs, and several vendors now read each other's catalogs. Federation solves discovery and access. It doesn't decide which catalog owns a table's commits or who maintains it, and every shared table needs exactly one answer to both.

Iceberg v3 (deletion vectors, row lineage, the variant type, geospatial types, default values, nanosecond timestamps) is now generally available in Snowflake, Amazon Redshift, and S3 Tables, while Athena doesn't list support yet, Trino's support is experimental, and Google's BigQuery reads v3 but doesn't write it. The upgrade from v2 to v3 is one-way, so a table should move to v3 only when every engine that reads it can.

How data flows: bronze, silver, and gold

Most Iceberg lakehouses organize tables into the medallion layers Databricks named: raw bronze, validated silver, consumer-ready gold. The layers matter operationally because each has a dominant write pattern, and each write pattern leaves a different kind of debt behind.

Bronze: append-heavy, small files

Bronze is the raw capture layer: CDC from operational databases, event streams, file drops. It's append-only and kept as the replay source when downstream logic changes. Its write pattern is frequent small commits. The Iceberg Flink sink commits after each successful checkpoint, and in practice each writer subtask closes at least one file per partition it received data for. With five-minute checkpoints, that's 288 commits a day. Four writer subtasks writing into one daily partition produce at least 1,152 files a day, 34,560 a month, for a table that may hold a few gigabytes per day. Setting write.distribution-mode to hash routes each partition's rows to one writer and cuts the count, but streaming files stay small no matter what: their size is set by the checkpoint interval, not by a target.

Silver: merges and delete files

Silver is the governed model: deduplicated, typed, one row per entity, usually maintained with MERGE INTO. Merges are where delete files come from. A merge-on-read table under hourly CDC merges collects delete files on every commit, and every read applies them until a rewrite folds them into new data files. Copy-on-write avoids that at the price of rewriting every touched file on every merge. The usual split is copy-on-write for tables merged a few times a day and read constantly, and merge-on-read plus scheduled delete cleanup for tables merged continuously.

Gold: overwrites and retained snapshots

Gold tables are rebuilt for consumers: aggregates for dashboards, feature tables, reporting snapshots. They're usually overwritten on a schedule. An overwrite replaces the table's content logically, but the old files stay in storage for as long as an unexpired snapshot references them. A 50 GB table rebuilt daily and expired daily with the default five-day window carries about 250 GB of history. With expiry never configured, it carries 365 × 50 GB, about 18 TB, after a year.

TierDominant writeWhat accumulatesFirst operation it needs
BronzeFrequent small appendsSmall files, many snapshotsCompaction, then snapshot expiry
SilverMERGE, UPDATE, DELETEDelete files, rewritten-file churnDelete-file rewrite or copy-on-write
GoldScheduled overwritesRetained snapshots and unreferenced dataSnapshot expiry, then orphan cleanup

No single schedule serves all three. A bronze table can need compaction every hour, while a gold table needs nothing between rebuilds except expiry.

Why Iceberg tables slow down under normal load

None of this is a bug. Immutable files and versioned metadata are what make commits atomic and time travel possible. The cost is that structure accumulates on every write, in four forms:

  • Small files. Every file costs a request, a footer read, and a scheduling unit. A query over 30,000 files of 4 MB does about 30,000 GET requests and footer reads where 240 files of 512 MB would do 240, and planning time grows with the number of manifest entries. At $0.0004 per 1,000 GET requests the request bill is small. The latency and the engine CPU spent opening files are not.
  • Metadata growth. Every commit adds a snapshot, a manifest list, at least one manifest, and a metadata.json. Old metadata files are kept unless write.metadata.delete-after-commit.enabled is turned on, and manifests multiply until they're rewritten. Planning reads all of it.
  • Delete files. Every merge-on-read change adds work to every later read of the affected files. Row counts and table size don't move, so dashboards that track size never show it.
  • Unreferenced storage. Files replaced by compaction or overwrites stay until snapshots are expired, and files from failed or abandoned writes stay until an orphan sweep finds them.

These feed each other. More files mean more manifests; more manifests mean slower planning and slower maintenance; slower maintenance runs less often, which means more files. A lakehouse doesn't fail on a particular day. It drifts, one commit at a time, until a dashboard that took two seconds takes forty.

The maintenance runbook

Iceberg ships the procedures; it doesn't run them. The maintenance documentation lists snapshot expiry, old-metadata removal, and orphan cleanup as recommended, and compaction, manifest rewrites, delete-file rewrites, and statistics as optional, which in production means required for any table with real write traffic. The defaults below are from the Spark procedures reference:

OperationSpark procedureKey defaultsRun it when
Compact data filesrewrite_data_files512 MB target; 5 input files minimum per group; delete-file count check off (delete ratio 0.3)Small-file share or delete files rise
Expire snapshotsexpire_snapshotsOlder than 5 days; keep at least 1After compaction, on every table with writes
Rewrite position deletesrewrite_position_delete_filesCompacts position delete filesDelete files pile up on merge-on-read tables
Rewrite manifestsrewrite_manifestsRegroups manifests by partitionManifest count grows faster than data
Remove orphan filesremove_orphan_filesOlder than 3 daysPeriodically, never with a short window
Compute statisticscompute_table_statsNDV sketches into PuffinAfter large rewrites, for cost-based planning

Order matters because each step changes the input of the next. Compact first, so the files it replaces become unreferenced. Expire snapshots next, which releases those replaced files along with old history. Rewrite manifests after the file set has settled, since compaction rewrites manifest entries anyway. Orphan cleanup runs on its own schedule with a safety window: the Iceberg docs warn that a window shorter than your longest write can delete files of a commit still in flight and corrupt the table.

sql
1-- 1. Compact, skipping the partition writers are hitting right now2CALL prod.system.rewrite_data_files(3  table   => 'sales.orders',4  where   => 'order_ts < TIMESTAMP "2026-11-26 00:00:00"',5  options => map(6    'target-file-size-bytes',    '536870912',7    'min-input-files',           '5',8    'delete-file-threshold',     '1',9    'partial-progress.enabled',  'true',10    'max-file-group-size-bytes', '10737418240'11  )12);13 14-- 2. Expire history older than seven days, keeping the last 10 snapshots15CALL prod.system.expire_snapshots(16  table       => 'sales.orders',17  older_than  => TIMESTAMP '2026-11-19 00:00:00',18  retain_last => 1019);20 21-- 3. Regroup manifests22CALL prod.system.rewrite_manifests(table => 'sales.orders');23 24-- Separately, with a window longer than any write25CALL prod.system.remove_orphan_files(26  table      => 'sales.orders',27  older_than => TIMESTAMP '2026-11-19 00:00:00'28);

To cluster as well as compact, the same procedure takes a sort strategy: strategy => 'sort' uses the table's sort order, and sort_order => 'zorder(customer_id, region)' applies Z-order for that run. A sort rewrite rewrites every file in scope, so scope it to the partitions that are actually queried by those columns.

Set the table properties that make writers and cleanup behave, once per table:

sql
1ALTER TABLE prod.sales.orders SET TBLPROPERTIES (2  'write.metadata.delete-after-commit.enabled' = 'true',3  'write.metadata.previous-versions-max'       = '50',4  'history.expire.max-snapshot-age-ms'         = '604800000',  -- 7 days5  'history.expire.min-snapshots-to-keep'       = '10'6);

Then measure, before and after every change. Small files and delete files per partition come straight from metadata:

sql
1SELECT partition,2       COUNT(*)                                        AS data_files,3       ROUND(AVG(file_size_in_bytes) / 1048576, 1)     AS avg_mb,4       SUM(CASE WHEN file_size_in_bytes < 1342177285                THEN 1 ELSE 0 END)                     AS under_128mb6FROM   prod.sales.orders.files7WHERE  content = 08GROUP  BY partition9ORDER  BY under_128mb DESC10LIMIT  20;11 12SELECT content, COUNT(*) AS delete_files, SUM(record_count) AS deleted_rows13FROM   prod.sales.orders.delete_files14GROUP  BY content;

The mistakes that cost the most time:

  • Compacting the hot partition. Rewriting files a streaming writer is still appending to causes commit conflicts on both sides. Filter it out with where, and turn on partial-progress.enabled so one conflict doesn't discard a whole run.
  • Expiring before compacting. The files compaction replaces stay referenced until the next expiry, so storage peaks a full cycle later than it should.
  • A short orphan window. Three days is the floor the docs give, not a target. Keep it longer than any load, backfill, or long-running job.
  • Spark out of memory on large rewrites. Lower max-file-group-size-bytes from its 100 GB default (10 GB above) and limit max-concurrent-file-group-rewrites instead of giving the job a bigger cluster.
  • Sorting by too many columns. A linear sort helps its first column; Z-order past four columns stops helping any of them.

What changes at 20, 200, and 2,000 tables

TablesWhat worksWhat breaks
20A notebook of the procedures above, run by hand or nightlyNothing yet, if someone owns it
200A scheduler running a Spark job per table, with per-table settings in configOne schedule for different write patterns; conflicts with streaming writers; nightly windows that leave tables degraded all day
2,000Something that decides per table from metadata, runs the right operation, and records itAny approach where a person decides the cadence, the threshold, or the order per table

The reasons scripts stop scaling are structural. Tables need different cadences: a bronze stream needs hourly compaction and a gold rebuild needs none. Operations depend on each other, so a fixed sequence is wrong whenever a table needs only one of them. Thresholds written for a table's current state drift as its ingest rate and partitions change. And Spark is a general-purpose cluster running a narrow, I/O-bound rewrite, so the compute bill is what pushes maintenance into overnight windows. At that point maintenance is a distributed system in its own right, and it needs the properties of one: state-driven decisions, ordering, conflict handling, and an audit trail.

How LakeOps runs the operations layer

LakeOps is that system for Iceberg lakehouses on AWS Glue and Iceberg REST catalogs, such as Apache Polaris and Project Nessie, with tables on Amazon S3 and S3-compatible storage. It reads the metadata covered above, decides per table what's due, and runs it on its own compute against your bucket and your catalog. Everything below maps to a step in the runbook.

Lake-wide health, from metadata

Each table scan checks metadata against fixed thresholds and raises insights: partitions made mostly of small files, high delete ratio, excessive snapshots, excessive manifests, skewed partitions, refs without retention, and stale tables. A table is Critical if it has a critical insight, Warning if it has a warning one, and Healthy otherwise. The dashboard rolls that up across catalogs, with total data and 30 days of maintenance activity.

LakeOps dashboard with lake-wide table counts by health status, total data, and 30-day maintenance activity
Critical, Warning, and Healthy tables across every connected catalog, with 30 days of maintenance activity: the lake-wide version of the metadata queries above.
Watch demoYouTube ↗
Autonomous Iceberg Data Lake Management: connecting existing catalogs, reading table health, and running maintenance in place.
LakeOps tables list with Healthy, Warning, and Critical status and table sizes across catalogs
Every connected table with its health status and size, so bronze tables with small-file debt and silver tables with delete-file debt show up in one list.

Every operation lands in Events, whatever started it: a policy, Adaptive Maintenance, a manual Execute, the REST API, or MCP. Each event records the operation, its status (Submitted, Running, Success, or Failed), timing, and the result.

LakeOps Events log listing maintenance operations across tables with type, status, duration, and impact
One log of every compaction, expiry, and cleanup across the lake, with status and impact per run.

Adaptive Maintenance: the runbook, decided per table

Adaptive Maintenance is one policy covering five operations, which run in this order when more than one is due: compaction, snapshot expiry, rewrite position deletes, remove dangling deletes, and rewrite manifests. Orphan cleanup is a separate policy with a seven-day default window. The decision comes from signals sampled from metadata: the share of small files, compactable bytes, snapshot and manifest counts, position, equality, and dangling delete files, and how fast compactable bytes and snapshots grow per hour. Each operation carries a needed flag, a score, and a projected trigger time.

In Automatic mode an operation runs when its signal crosses its threshold, with no cron, so a bronze stream gets compacted often and a quiet gold table gets left alone. In Scheduled mode a cron expression caps when maintenance can run, and only the operations that are due execute. The Adaptive Maintenance docs list every signal and API flag, and table maintenance covers the full lifecycle.

LakeOps Adaptive Maintenance tab showing per-operation cards for compaction, snapshot expiration, manifest rewrites, and orphan file cleanup
Per-table signals for each operation, with a score and projected trigger time, replacing the cron entry per table.

Compaction on a Rust engine, not a Spark cluster

Compaction runs on a Rust engine built on Apache DataFusion, on LakeOps-managed compute. A job reads only the files it rewrites, writes the new files to your bucket, and commits a new snapshot through your catalog. It uses binpack by default and sort when the table has an Iceberg sort order, with a 512 MB default target. Commits use Iceberg's optimistic concurrency: a conflicting commit from another writer is detected rather than overwritten, retried with backoff, and if it still fails the table is unchanged and the next run picks the files up again.

On a 200 GB compaction run, the engine finished in 221 seconds against 1,612 seconds for Spark, and across LakeOps' published benchmarks query-aware compaction runs 95% faster and about 90% cheaper than Spark. The practical effect is the one the runbook needs: compaction cheap enough to run when a table needs it instead of once a night.

LakeOps Partitions tab with file counts and sizes per partition
Files and bytes per partition, showing where small files and skew sit before and after compaction.

Layout: estimate before you rewrite

A new partition spec or sort order rewrites every file in scope, so it's worth estimating first. Simulations compares candidate partition specs and sort orders against the current layout and scores each on estimated files scanned, manifests read, bytes read, planning and execution time, and partition skip rate. The estimates are computed from metadata, and nothing is written or committed. The workload is inferred from column names and types today, not from query history, so treat the scores as directional and confirm with a timed query; the Simulations docs describe the model.

LakeOps layout simulations comparing candidate sort and clustering strategies for a table
Candidate sort and clustering strategies scored against the current layout before any production rewrite.

Policies scoped to the tables you choose

Policies apply the runbook by scope instead of by script: all catalogs, one catalog, or namespaces and tables by exact name or regex, with exclusions. A table policy wins over a governance policy, and among governance policies the most specific scope wins. New tables in scope inherit the policy when they're scanned, which is what closes the gap where a table created last week never made it into the maintenance job. Configuration policies set table properties, such as the write modes and metadata settings above, on the tables in scope: they add properties a table doesn't set, and an override switch replaces differing values.

LakeOps policies list with compaction, orphan cleanup, snapshot expiry, and manifest rewrite schedules
Maintenance policies with scope, schedule, next run, and last run, each one pausable with a toggle.

Connect in place, and the agent layer on top

Connecting is a catalog registration with a scoped identity, and discovery and health analysis start from there; the connection guide lists what each catalog type needs. Nothing moves, and every engine keeps reading the same tables. The platform overview shows how health, maintenance, layout, and policies fit together.

LakeOps Catalogs page with AWS Glue and Iceberg REST catalogs connected
Catalogs connected in place. Tables stay in your storage and your catalog, where every engine still reads them.

The same layer is what makes the lakehouse safe for AI agents. Healthy tables keep agent queries fast and cheap. Agent SQL can go through one governed endpoint on QueryFlux, the open-source SQL router the LakeOps team maintains, with guardrails such as read-only mode, row limits, and required predicates. And the operations themselves are available to agents over MCP, with scoped API keys. The agentic lakehouse page covers how those three parts fit together.

The economics, with real numbers

The lakehouse cost case is often stated as cheap storage. It's more accurate to say one copy, and compute you choose.

Storage. Amazon S3 Standard in us-east-1 costs $0.023 per GB-month for the first 50 TB, stepping down to $0.021 above 500 TB. That's about $280 per TB per year, or roughly $260,000 to $270,000 a year for a petabyte, before infrequent-access tiers. Storage is rarely where a lakehouse saves money per byte. It saves by keeping one copy instead of a lake copy and a warehouse copy, and by not paying for the pipeline that keeps them in sync.

Requests. GETs cost $0.0004 per 1,000 and PUTs $0.005 per 1,000. Small files show up here less as a bill than as latency, but a streaming table that writes thousands of files a day and is compacted repeatedly pays the PUT side on every rewrite.

Compute. This is where the decisions are. Each workload can run on the engine that fits it: Spark or Flink for writes, Trino or Snowflake for concurrency, DuckDB for single-node jobs. A slow table makes every engine more expensive, because scan time is billed time.

Hidden storage. Retained snapshots and orphaned files are often a large share of a bucket that nobody has audited. The gold-table arithmetic above (18 TB of history behind a 50 GB table) is typical of tables where expiry was never configured.

Maintenance. Compaction and cleanup are compute too. On Spark they cost a cluster, its startup, and idle capacity; on a purpose-built engine they cost a fraction of that, which changes how often you can afford to run them.

Lake, warehouse, and lakehouse compared

Data lakeData warehouseIceberg lakehouse
StorageOpen files in object storageVendor-managedOpen files in object storage
TransactionsNoneFull ACIDFull ACID through the table format
EnginesAnything that reads filesThe vendor's engineAny engine with Iceberg support, through a shared catalog
Copies of curated dataOne, ungovernedOne, plus the lake copy it loads fromOne
Streaming and batchSeparate systemsSeparate systemsThe same tables
Table maintenanceNot applicableDone by the vendorYour responsibility, through jobs or a control plane
Lock-inLowHighLow: open format and open catalog APIs

The trade is explicit in the table-maintenance row: warehouse guarantees on open storage, in exchange for owning the operations layer. For a wider look at when each architecture fits, see data lake vs lakehouse vs warehouse.

A build sequence that works

You don't need every layer on day one. Each step below stands on its own and sets up the next:

  1. 1.Standardize on Iceberg for new analytical tables. Pick v2 unless every engine that will read a table supports v3.
  2. 2.Choose one REST catalog per table domain. Glue for AWS-native simplicity, Polaris or Lakekeeper for open control, and decide now which catalog owns commits for each table.
  3. 3.Land bronze with append-only writers. Flink or Spark streaming with hash distribution, a target file size, and a checkpoint interval chosen for freshness, knowing it sets file size.
  4. 4.Build silver with deliberate write modes. Copy-on-write where reads dominate, merge-on-read where merges are continuous, set explicitly per table.
  5. 5.Declare layout. Partition specs on the columns that bound time or tenancy, and a sort order on the columns queries filter by.
  6. 6.Put maintenance in place before tables age. The runbook above, or a control plane connected to the catalog, from the first week of production writes.
  7. 7.Add engines per workload. Trino, Snowflake, or DuckDB through the same catalog, each added by configuration.

It's the right architecture when several workload types (BI, ML, streaming, agents) need the same data, when more than one engine is a real requirement, when the cost of keeping a warehouse copy in sync is visible, or when you want the exit path to stay open. A single team with one engine and moderate data can stay on a warehouse without regret.

The takeaway

An Iceberg lakehouse is four well-defined layers and one that most diagrams leave out. Storage, the table format, the catalog, and the engines give you transactional tables on open files that any engine can share. Keeping those tables fast is a continuous job: compaction where files are small, delete cleanup where merges land, expiry where history piles up, and orphan cleanup on a safe window, each decided per table from metadata.

Build the first four layers deliberately, measure tables from their metadata, and give the operations layer an owner from the first week. If you'd rather not run that layer as a fleet of Spark jobs and cron entries, LakeOps runs it as a control plane on the catalogs you already have.

Related articles

Found this useful? Share it with your team.