Catalogs and Engine Interop

What a catalog actually is

Every catalog does one job: store table name → where the current metadata lives, and support an atomic compare-and-swap on that value. Everything else — access control, browsing tables, namespaces — is convenience built on top of that one job.

Four ways to answer one question — and all four must implement a real CAS
Four ways to answer one question — and all four must implement a real CAS
CatalogBacking storeNotes
Hive MetastoreMySQL or Postgres behind Hive's Thrift serviceThe old default. The swap is an UPDATE … WHERE current_location = ? inside a transaction. Everywhere, because most Hadoop-era lakes already ran one.
AWS GlueA managed AWS serviceCommon on AWS. The swap is Glue's conditional UpdateTable. Nothing for you to run.
REST catalogWhatever the operator wants, behind a standard HTTP APIAn open specification defined by Iceberg, not a product. Any server that implements it (Polaris, Lakekeeper, Unity Catalog, S3 Tables) looks the same to a client. This is where the ecosystem is heading (see Iceberg vs Delta vs Hudi).
JDBC catalogAny SQL databaseThe simplest option: one row per table, swap via a conditional UPDATE. Fine for small setups with no HMS or Glue around.
NessieA git-like versioned metastoreAdds transactions across several tables, and branches. Commit changes to five tables as one unit, or branch to stage a risky migration and merge it once it checks out. Genuinely different, not just another backend.

What every one of these has to get right is the atomic swap, not just storing a string somewhere. A catalog that reads and then writes without real atomicity quietly brings back the exact race the Concurrency control part exists to prevent — and this has burned teams who built their own catalog without realizing that was the requirement.

Worked example: Hive Metastore as an Iceberg catalog, physically

"Hive Metastore" sounds like a system in its own right. It isn't. It's two pieces: an ordinary MySQL or Postgres database that holds the actual rows, and a Thrift server in front of it that is the only process allowed to touch that database.

What the Thrift server is actually for

The obvious question, since the truth is just rows in Postgres: why not let Spark and Trino open a JDBC connection and read them directly? Four reasons — and the last one is the one Iceberg's correctness depends on.

What the server buys youWhy a direct DB connection doesn't
One API, every languageThrift is language-neutral RPC, so Java Spark, C++ Impala and Python clients all call the same get_table / alter_table / lock methods. Nobody writes SQL against the metastore, and nobody ships a MySQL driver to talk to it.
Nobody else holds credentialsEngines are configured with a metastore host and port; the JDBC password lives only in the HMS process. That also makes HMS the single place to hang authentication, authorization (Ranger/Sentry) and audit — a direct connection would mean every engine has write access to every table's metadata.
The schema stays a private detailTBLS/SDS/TABLE_PARAMS are HMS's internal layout and they change between Hive versions. Clients bind to the Thrift API instead, so a metastore upgrade (or swapping MySQL for Postgres) doesn't break every engine at once.
It owns transactions and locksthe one that matters A commit is not one statement — it's read the pointer, compare it, update it, and possibly take a lock, all of which must be one database transaction. Only the process holding the JDBC connection can hold that transaction open. HMS also hosts the lock manager, so two engines that have never heard of each other can still coordinate through it.
Spark   Trino   Flink   Hive        ← engines: no DB driver, no credentials,
   │       │       │       │            no knowledge of the metastore schema
   └───────┴───┬───┴───────┘
               │  Thrift RPC: get_table · alter_table · lock · unlock
               ▼
     ┌─────────────────────┐
     │  HMS server process │        ← transactions, locking, authN/authZ, audit
     └─────────────────────┘
               │  JDBC  (the password exists only here)
               ▼
   MySQL / Postgres:  TBLS · SDS · TABLE_PARAMS · HIVE_LOCKS

The server itself keeps no durable state, so you run several HMS instances for availability — behind a load balancer, or more commonly by handing clients a list in hive.metastore.uris and letting them fail over on reconnect. Correctness comes from the shared database's transactions, not from there being one server. Three HMS instances all pointed at one Postgres is a normal deployment; three HMS instances with three separate databases is two extra tables that only look like the same table (the split-brain failure mode from the risk table below). Note which half is actually load-bearing: the DB is the single point of truth and the single point of failure, so availability work belongs in Postgres, not in the servers in front of it.

With that in place, three of the database's tables are all we need here:

HMS tableColumns that matterWhat it holds, in plain words
TBLStbl_id | tbl_name | db_id | sd_idOne row per table — its name, and a pointer to its storage descriptor.
SDSsd_id | location | input_formatThe storage descriptor: "the data lives in this folder, written in this file format."
TABLE_PARAMStbl_id | param_key | param_valueA free-form key/value bag hanging off a table. Anything HMS has no dedicated column for gets stashed here.

Here's the thing worth seeing: a plain Hive table and an Iceberg table live in those same three tables, in the same database, behind the same service. The only difference is which row the engine trusts to find data — and that single difference is everything the parts from Iceberg's metadata tree to Concurrency control described.

Case 1 — a plain Hive table

CREATE EXTERNAL TABLE events (…) LOCATION 's3://warehouse/events/' writes two rows:

TBLS:   tbl_id=42, tbl_name='events', sd_id=7
SDS:    sd_id=7, location='s3://warehouse/events/', input_format=ParquetInputFormat

At query time, reading dt=2024-01-02 goes like this:

  1. The engine asks HMS: "where does events live?" HMS follows sd_id=7 and answers s3://warehouse/events/.
  2. The engine glues the partition onto that string itself — s3://warehouse/events/dt=2024-01-02/ — and calls LIST on S3 for that prefix.
  3. Whatever files come back are the table. It reads all of them.

HMS's involvement ended at step 1. It never knew which files exist, so every query rediscovers them from scratch — and has to assume everything under that prefix belongs to the table, including a half-written file left behind by a job that crashed.

Case 2 — the same table, registered as Iceberg with the Hive catalog

Iceberg writes its own metadata to storage first, next to the data but separate from it:

s3://warehouse/events/metadata/
└── v1.metadata.json   ← {schema, partition spec, snapshots: [], current-snapshot-id: null}

Only then does it register the table — in the same HMS database, using the same three tables:

TBLS:   tbl_id=99, tbl_name='events', sd_id=15
SDS:    sd_id=15, location='s3://warehouse/events/',
        input_format=IcebergInputFormat   ← filled in only because HMS demands it; nobody reads it
TABLE_PARAMS:
    tbl_id=99, param_key='table_type',       param_value='ICEBERG'
    tbl_id=99, param_key='metadata_location', param_value='s3://.../metadata/v1.metadata.json'

Notice what moved. In case 1 the useful value was SDS.location, a folder. Here it's TABLE_PARAMS.metadata_location, an exact file path — and that one key/value row, a single VARCHAR cell in an ordinary SQL table, is the swappable pointer from the Concurrency control part. SDS.location is still populated because HMS's schema requires every table to have a storage descriptor, but no Iceberg reader uses it to find anything.

At query time the engine reads metadata_location and downloads exactly that one JSON file — no LIST call anywhere. The manifest list and manifests inside it hand over precise file paths plus per-file stats to prune with, so the engine opens only the files it actually needs.

The commit: where the Concurrency control swap physically happens

A writer appending dt=2024-01-02 does four things, in this order:

  1. Writes the new Parquet data files. Invisible so far — nothing points at them yet.
  2. Writes a new manifest (listing those files + their stats) and a new manifest list. Still invisible.
  3. Writes v2.metadata.json, a complete new table state pointing at that manifest list. Still invisible — it's just a file sitting in the bucket that nothing references.
  4. Calls HMS alter_table to move the pointer from v1 to v2. Everything above becomes visible at this instant, all at once.

Step 4 is not a plain write. It has to be a compare-and-swap inside one database transaction — semantically, this:

UPDATE TABLE_PARAMS
SET param_value = 's3://warehouse/events/metadata/v2.metadata.json'  -- the "swap"
WHERE tbl_id = 99
  AND param_key = 'metadata_location'
  AND param_value = 's3://warehouse/events/metadata/v1.metadata.json';  -- the "compare"

The last line is the whole trick. It says only move the pointer if it's still where I last saw it. The database then reports how many rows it changed:

ResultMeaningWhat the writer does next
1 row updatedThe pointer was still on v1. This writer won the race, and the commit is durable the moment the transaction commits.Done.
0 rows updatedSomeone else already moved it to their own v2. Nothing was overwritten and nothing was lost — this writer simply didn't win.Re-read the current metadata, check whether the other commit actually conflicts (two appends usually don't), rebuild on top of it, and retry the same UPDATE against v3.

Drop that AND param_value = … line and the whole thing silently breaks. Two writers who both read v1 would both succeed at writing their own pointer, the second overwriting the first — and one commit's data would sit in the bucket forever, referenced by nothing. The conditional part is the guarantee; the storing-a-string part is trivial.

Two details that UPDATE statement hides

First: a commit moves more than one row. The pointer is the part that decides correctness, but the same transaction also rewrites the bookkeeping keys Iceberg keeps in TABLE_PARAMS for engines that only ever look at HMS:

metadata_location           → s3://.../metadata/v2.metadata.json   ← the pointer; everything else is bookkeeping
previous_metadata_location  → s3://.../metadata/v1.metadata.json   ← what it was, for the compare and for recovery
current-snapshot-id, current-snapshot-timestamp-ms, snapshot-count
current-schema, default-partition-spec
numFiles, totalSize, numRows                                       ← stats for engines that read HMS, not the manifests

All of them land in one transaction, so a reader never sees a pointer from one commit next to stats from another. TBLS and SDS normally aren't touched at all — they were written at table creation and just sit there. The exception is a schema change: alter_table replaces the whole table object, and Iceberg rebuilds the storage descriptor from the current Iceberg schema each commit so Hive and Trino see sane column names, which rewrites SDS / COLUMNS_V2 / SERDES too. On a plain append the rebuilt descriptor is identical to what's already stored, so nothing changes.

Second: stock HMS has no compare-and-swap. alter_table replaces the table object unconditionally — it will happily overwrite whatever pointer is there. The conditional in the SQL above is real, but something has to enforce it, and Iceberg has two ways to do that:

Explicit HMS lock the classic pathHMS-native CAS Hive 4+
How the compare happensThe client does it: take an exclusive lock via the Thrift lock() call, re-read metadata_location, check it still equals the base version, alter_table, unlock().The server does it: alter_table_req carries an EnvironmentContext with expectedParameterKey=metadata_location and expectedParameterValue=<v1 path>. HMS compares inside its own transaction and throws if it doesn't match.
Where the lock livesA fourth HMS table, HIVE_LOCKS — rows in the same Postgres, heartbeated by the client for as long as the commit takes.Nowhere. There is no lock; the DB transaction is the whole mechanism.
Turned on byThe default for years.iceberg.engine.hive.lock-enabled=false — which reads backwards: it means "stop using locks, the metastore can do the compare itself."
Failure modeA writer that dies mid-commit leaves a lock row behind with nothing heartbeating it. Every other writer blocks until it times out or someone clears it by hand. This is the classic "all our Iceberg commits hang" incident.A losing writer gets a clean exception and retries. Nothing is left behind to clean up.

Worth knowing which one you're on before an interview or an incident: the tidy single-UPDATE story is accurate for the CAS path, but for most of HMS's history the atomicity came from a lock table plus a client that had to stay alive — and that difference is exactly where the outages came from.

So Hive and Iceberg-on-HMS share the same service and the same database, and just mean different things by one row:

Plain Hive tableIceberg table, same HMS
Catalog row points toA directoryOne exact metadata file
Finding the data filesLIST the prefix, on every single queryRead the metadata tree — no LIST at all
What "committing" meansCopy files into the folder; they're live the moment they land, half-written or notWrite everything invisibly, then swap one string
Two writers at onceNo detection — both just drop files inConditional UPDATE: exactly one wins, the loser is told and retries
HMS's actual jobA directory registry"Somewhere I can atomically swap one string"

That last row is the point. Iceberg never wanted a metastore — it wanted one atomically-updatable cell, and HMS happened to be a service every Hadoop-era lake was already running.

The N×M problem — and what the REST catalog spec actually fixed

Everything above describes one catalog. The interop question is what happens when an organization has several, and several engines. Because Catalog started life as a Java interface, not a wire protocol, every engine had to ship a client implementation per backend: HiveCatalog spoke Thrift, GlueCatalog spoke the AWS SDK, NessieCatalog spoke Nessie's own HTTP API, JdbcCatalog spoke SQL. Spark got these free by being on the JVM. Everything else did not — Trino, PyIceberg, and iceberg-rust each had to reimplement the same four clients from scratch, and keep them in sync as the spec moved.

Every engine needed a client per catalog — until one HTTP contract collapsed the mesh
Every engine needed a client per catalog — until one HTTP contract collapsed the mesh

The Iceberg REST Catalog (IRC) is an OpenAPI document, not a product. The catalog implements the server side; each engine implements one HTTP client, once. That's the whole reason Spark configured like this doesn't know or care which vendor is on the other end:

spark.sql.catalog.prod       = org.apache.iceberg.spark.SparkCatalog
spark.sql.catalog.prod.type  = rest
spark.sql.catalog.prod.uri   = https://polaris.internal/api/catalog

# Trino, same catalog, different config file:
connector.name               = iceberg
iceberg.catalog.type         = rest
iceberg.rest-catalog.uri     = https://polaris.internal/api/catalog

Polaris, Unity Catalog's Iceberg endpoint, Lakekeeper, Gravitino, Snowflake Open Catalog, S3 Tables, and Databricks all sit behind that same URL shape. So does a plain HMS, if you put an IRC adapter in front of it.

Read past the plumbing and IRC changed two structural things, not just the transport. Both matter more than the N+M arithmetic.

First structural change — the commit moves server-side

With HMS, the client drove the compare-and-swap — take the lock, re-read, compare, alter_table, unlock, and stay alive the whole time (which is exactly where the hung-commit outages above came from). With IRC the engine declares its preconditions and lets the server enforce them:

POST /v1/namespaces/analytics/tables/events
{
  "requirements": [
    { "type": "assert-ref-snapshot-id",
      "ref": "main", "snapshot-id": 4830219947 }   ← the "compare"
  ],
  "updates": [
    { "action": "add-snapshot",   "snapshot": { ... } },
    { "action": "set-snapshot-ref",
      "ref": "main", "snapshot-id": 9971204418 }   ← the "swap"
  ]
}
                          409 Conflict  →  loser retries from §4

The engine becomes a thin client that proposes a metadata change. The catalog validates, applies policy, and commits inside its own transaction. No client-held lock, nothing to leak if the writer dies mid-flight.

Who writes metadata.json, and when

One consequence of the commit moving server-side is easy to miss: under IRC the engine stops writing metadata.json altogether. Before unpacking that, pin down the part that doesn't change.

The ordering invariant, in every catalog: the new metadata.json is fully written to object storage before the pointer is swapped. Never during, never after. The swap is only ever a pointer moving between two files that both already exist.

That's what makes the swap atomic at all. Steps 1–4 below are unsynchronized and can take minutes; nothing in the world references those bytes yet, so a reader resolving the table through the catalog still gets v8 and never sees them. Only step 5 is contended, and it is a single-row conditional UPDATE:

1. write Parquet data files            → S3   ┐
2. write manifest files                → S3   │ minutes of work,
3. write the manifest list             → S3   │ invisible to every reader —
4. write v9.metadata.json              → S3   ┘ nothing points at any of it
                                       ─────────────────────────────────────
5. CAS the catalog pointer  v8 → v9           ← the only contended step

On an RDS-backed catalog (HMS or JDBC), step 5 is literally one statement, and the database's own row lock supplies the atomicity and isolation for free:

UPDATE iceberg_tables
   SET metadata_location = 's3://lake/…/metadata/v9.metadata.json'
 WHERE catalog_name = ? AND table_namespace = ? AND table_name = ?
   AND metadata_location = 's3://lake/…/metadata/v8.metadata.json';  ← the compare

rowcount = 1  → you committed
rowcount = 0  → someone moved the pointer while you were writing;
                re-read, re-apply your operation on top, write a NEW
                v10.metadata.json, and retry (§4)

HMS does the same thing through alter_table_req with previous_metadata_location as the guard — same CAS, wrapped in Thrift.

Now the part that does change: who authors step 4.

HMS / Glue / JDBC client authorsREST catalog server authors
Who builds v9.metadata.jsonThe client, in its own JVM. It serializes the file, PUTs it to S3, then hands the catalog a string: "point at this path."The client sends requirements + updates. The server loads v8, checks the requirements, applies the updates, writes v9, and swaps — all inside its own transaction.
What the catalog seesAn opaque path. It never opens the file. It cannot tell an append from a schema change from a partition-spec drop.Typed operations — add-snapshot, set-current-schema, set-snapshot-ref. The intent is legible before anything is committed.
Steps 1–3 (data + manifests)Still the client's job in both. Only metadata.json authorship moves.

Two consequences follow directly from that column swap, and neither is available to HMS:

  1. The catalog can inline the metadata in the commit response. It just built that object in memory, so returning it costs nothing — and saves the client the S3 GET it would otherwise need to re-read what it now depends on. HMS has nothing to inline; it only ever held a path.
  2. The catalog can enforce policy on a commit at all. It is looking at set-current-schema as a semantic operation, so it can reject it — retention lock, "you may not drop a partition field", "you lack write on this namespace". HMS structurally cannot: by the time it hears from you the file is already in S3, and all it's being asked to do is swap a VARCHAR. Table-level policy under HMS is advisory in the same way its authz is (see credential vending, below).
HMS, lock path client-drivenREST catalog server-driven
The commit isFour RPCs — lock → get_table → alter_table → unlock — that only add up to a CAS because the client sequences them.One POST carrying requirements + updates. The request is the whole operation.
Who performs the compareThe client: re-read the pointer, compare it in application code, then write.The server: it re-checks every requirement against live state inside its own transaction.
Where the critical section isSpans four network round trips and a process that can die inside it.Entirely inside one server-side DB transaction — microseconds, one row lock.
Does HMS hold a transaction open across the calls?No — and that's the problem. One RPC is one transaction (see the "three servers" callout above). The lock is durable rows in HIVE_LOCKS, not a held transaction, precisely because nothing server-side can span the calls.Not applicable. There is only one call, so the transaction never needs to span anything.
What the server knowsNothing. It sees four unrelated RPCs and has no idea they're one logical commit — so it can neither finish nor roll back a commit in flight.Everything. It can validate, apply authz and table policy, and commit or reject as one unit.
Writer dies mid-commitA lock row with nothing heartbeating it. Every other writer blocks until the reaper clears it (hive.txn.timeout, 300s by default) — and this happens whether the commit landed or not.The connection drops, the transaction rolls back, nobody notices. Nothing to leak.
Who writes metadata.jsonThe client, before the swap.The catalog, from the updates in the request.
Losing writer learns viaAn exception from alter_table (or 0 rows updated).409 Conflict.
Multi-table commitsImpossible — CAS is per table row.POST /v1/transactions/commit commits several tables as one unit.

The lock didn't disappear so much as shrink. The catalog still serializes writers on a row — it's the same SELECT … FOR UPDATE HMS was doing inside alter_table. What changed is what that lock has to protect: a critical section held for microseconds by the server, instead of one held across four round trips by a client that might crash.

What is still the client's job

"One API call" describes the commit, not the write. Everything expensive still happens outside any critical section, exactly as the Concurrency control part intends:

GET  /v1/namespaces/analytics/tables/events   ← read current snapshot id + schema
       engine writes Parquet data files to S3     ┐ unsynchronized, minutes of work,
       engine writes manifests + manifest list    ┘ invisible to every reader
POST /v1/namespaces/analytics/tables/events   ← the only contended step

And retries are still the engine's responsibility. A 409 means the assert-ref-snapshot-id went stale while you were writing manifests: re-read the table, check whether the other commit actually conflicts, re-parent your already-written data files onto the new snapshot, and POST again. That loop is identical to the HMS one. IRC relieves the client of mutual exclusion, not of conflict resolution.

Who retries, and what a retry actually rebuilds

Worth tracing explicitly, because the natural assumption — that moving the commit server-side also moved the retry — is wrong, and it's the assumption that leads people to under-provision the writer.

Nothing revises a losing metadata.json into the next version. The loser's file is dead on arrival and becomes an orphan; the retry builds a brand-new metadata file on top of the winner's version. The client's own process does it, in both architectures.

HMS / JDBC — the client wrote a metadata file and now has to throw it away:

Writer A                              Writer B
read v8                               read v8
write data + manifests + mlist        write data + manifests + mlist
write v9a.metadata.json  → S3         write v9b.metadata.json  → S3
CAS v8→v9a   ✓ rowcount 1             CAS v8→v9b   ✗ rowcount 0
                                      │
                                      ├─ re-read pointer → now v9a
                                      ├─ conflict check: does A's change
                                      │    actually collide with mine? (§4)
                                      ├─ re-parent: keep my Parquet files,
                                      │    rebuild manifest list on top of v9a
                                      ├─ write v10.metadata.json → S3
                                      └─ CAS v9a→v10  ✓
                                         └─ v9b is now garbage

IRC — same loop, one less wasted write:

POST requirements + updates   →   409 Conflict
   │
   ├─ re-read the table (or use the metadata inlined in the response)
   ├─ conflict check                    ← still the client's job
   ├─ rebuild manifest list on the winner's snapshot
   │    Parquet files reused; there is no metadata.json to discard,
   │    because the client never wrote one
   └─ POST again with a fresh assert-ref-snapshot-id

What IRC saves per failed attempt is one wasted metadata.json write to S3 and the round trip to re-read it — not the retry. The server does not retry on your behalf; it validates, then commits or returns 409.

On a lost commitHMS / JDBCREST catalog
Who runs the retry loopThe Iceberg library inside the writer's own process — SnapshotProducer / BaseTransaction in the Spark driver or Flink job manager. Not the catalog, not a background service.
Bounded bycommit.retry.num-retries, default 4, with backoff between attempts. Exhaust them and the operation fails to the user.
Rebuilt on each attemptManifest list and a new metadata.json.Manifest list only.
Reused on each attemptThe Parquet data files, and usually the manifests. That's the whole point of re-parenting — the minutes of work are never redone.
Left behindAn orphaned metadata.json per failed attempt, plus any manifests that got rebuilt.Orphaned manifests only.

One caveat: nothing in the spec forbids a catalog from doing limited server-side reconciliation for trivially commutative appends, and some vendors do. It isn't IRC-standard behaviour — don't design assuming it.

Second structural change — credential vending

Everything from the first structural change through the retry trace above was one shift: the commit moved server-side. This second one is smaller in code and larger in consequence — it's the one that actually kills HMS in new deployments. Under HMS, the catalog hands back a path and the engine uses its own S3 credentials — so anyone with bucket access reads the table regardless of what the catalog thinks their permissions are. Table-level authz was advisory. Under IRC the catalog is the credential broker:

GET /v1/namespaces/analytics/tables/events
    X-Iceberg-Access-Delegation: vended-credentials

200 {
  "metadata-location": "s3://lake/analytics/events/metadata/00042-….json",
  "metadata":  { …the whole metadata.json, inlined… },   ← saves a round trip
  "config": {
    "s3.access-key-id":     "ASIA…",      ← STS credentials, scoped to
    "s3.secret-access-key": "…",          ← this table's prefix only,
    "s3.session-token":     "…"           ← expiring in ~1 hour
  }
}

The engine never needs standing storage credentials at all, and revoking a grant in the catalog actually revokes access. That is a genuinely different security posture, not a convenience.

Worth keeping the axes separate: Iceberg vs Delta is a format question; HMS vs Glue vs REST is a catalog question. They're independent. Delta's commit protocol needs no catalog for correctness at all (next) — which is why "which catalog" is a much louder conversation in Iceberg shops than Delta ones, right up until Unity Catalog managed tables, where it gets loud again for the opposite reason: with catalog-managed tables, Unity Catalog becomes the commit coordinator, so the catalog lands on Delta's correctness path after all.

Delta Lake's catalog story

Delta has always relied less on a separate catalog. A Delta table is basically identified by its path, and Spark's session catalog (often HMS-backed) or Unity Catalog maps names to paths and adds access control. The transaction log describes itself, right there at the path, so in principle any engine that can read the path can read the table with no catalog at all. For Delta the catalog is about finding tables and governing them — names, permissions, lineage — not about correctness, which lives entirely in the log's commit protocol.

Unity Catalog is the fuller option now: central access control, audit logs, lineage. And through Databricks' UniForm, it can expose the same Delta table through an Iceberg REST catalog interface, so Iceberg-only engines can read a Delta table without converting anything (see Iceberg vs Delta vs Hudi).

How engines actually plug in

Every major engine supports these formats through a connector plus catalog configuration, not by reimplementing the spec from scratch:

Spark:  spark.sql.catalog.<name> = org.apache.iceberg.spark.SparkCatalog
                                  (points at HMS / Glue / REST / JDBC / Nessie)
        or the built-in Delta support via DeltaCatalog

Trino:  connector.name = iceberg   (or delta_lake)
        iceberg.catalog.type = rest / hive_metastore / glue

Flink:  a CatalogLoader configured similarly, used by the Iceberg/Delta
        Flink connector for streaming reads/writes into the table

Why that matters: the format and the catalog contract are both open and written down, so any engine that implements the protocol correctly can safely work alongside another engine's writes to the same table. A Flink job can append to a table that a Trino dashboard queries and a Spark job compacts, and none of them needs to know the others exist. This many engines, one table property is the single biggest practical reason organizations adopt a table format at all.

Where this actually breaks in practice

Interoperability is a promise on paper, not something you get automatically. It depends on every engine implementing the same version of the protocol correctly:

Failure modeCause
An older engine quietly returns wrong data from a v2 Iceberg tableThe engine only implements format version 1 and ignores the delete files it doesn't understand, so it hands back rows that should have been hidden. Version checks exist for exactly this, but only help if the engine enforces them instead of skipping what it can't parse.
Two engines disagree about which catalog is in chargeA migration leaves one engine on Glue and another on the old HMS for what people think is one table. Both are valid Iceberg tables — but they're now two separate tables drifting apart, because neither catalog's swap knows about the other.
Two REST-catalog clients disagree about what the catalog exposes"Speaks the REST spec" is a floor, not a contract for the whole surface. An engine built against an older client may not see views, may not honour multi-table transactions, and may ignore vended credentials entirely if it was configured with static storage keys — silently falling back to bucket-wide access and bypassing the catalog's table-level grants.
A REST catalog becomes a bottleneck and a single point of failureHMS and Glue are long-running or managed services with a track record. A hand-rolled REST catalog is new critical infrastructure that every reader and writer depends on before it can plan a single query.

The Invariants

  • Guarantees: With one catalog in charge, doing a real atomic swap, any engine that follows the spec can read and write the same table safely at the same time as any other. No engine needs to know the others exist.
  • Does not guarantee: It doesn't guarantee that the engines you run actually implement the protocol version your table uses, or that only one catalog is in charge of a given storage location. Both of those are things your organization has to enforce; the format can't.