Apache Iceberg has made it much easier to work with data across different query engines. Spark, Trino, Flink, and DuckDB can all interact with the same tables through the Iceberg REST Catalog API. That interoperability is one of the biggest advantages of the Iceberg ecosystem.

But there is a failure mode teams often overlook when connecting engines and platforms: what happens when two catalogs manage the same table? At first, everything appears to work. Queries run, jobs complete, and data is written without errors. The problem surfaces much later, when two systems return different numbers for what everyone assumes is the same table.

This is not an Iceberg bug. It is an ownership problem. Here is how Unity Catalog, Apache Polaris, and AWS Glue handle Iceberg tables, why multiple catalogs create inconsistencies, and the controls that keep a multi-engine platform consistent.

A migration that does not go as planned

Consider a common migration scenario. A team has an Iceberg table called sales.orders, currently managed through one catalog, and decides to move it to a new catalog while introducing another query engine or updating the data platform architecture.

The migration looks straightforward:

  • Register the existing table in the new catalog.
  • Update the Trino configuration to read and write through the new catalog.
  • Run a few validation queries to confirm everything works.
  • Leave the old catalog untouched, just in case the team needs to roll back.

On the surface, everything looks healthy. However, an existing Spark job is still configured against the old catalog. Now Spark commits through the original catalog while Trino commits through the new one. Both jobs succeed because each catalog maintains its own metadata pointer. There is no immediate error, no failed pipeline, and no warning, until downstream reports start showing different figures for the same business date.

Multiple catalogs can read a table, but only one should be responsible for committing changes to it.

What an Iceberg catalog actually manages

An Iceberg catalog does not physically store a table's data. The actual files live in object storage such as Amazon S3 or Azure Data Lake Storage: data files, manifest files, manifest lists, and table metadata files. The catalog's primary job is to track which metadata file represents the current state of the table.

When an engine reads a table, it contacts the catalog to find the current metadata location, then reads the required metadata and data files directly from object storage. Writing works differently: an engine prepares new data files and metadata, then asks the catalog to update the table's metadata pointer atomically.

When two writers operate against the same catalog, Iceberg's optimistic concurrency mechanism prevents conflicting updates: one commit succeeds and the other refreshes its metadata and retries. That coordination only happens within the catalog managing the table. Two independent catalogs do not coordinate commits with each other, which is where split-brain begins.

How catalog split-brain happens: two catalogs start from the same metadata version, accept independent commits, and diverge into separate table histories.
How catalog split-brain happens: two catalogs start from the same metadata version, accept independent commits, and diverge into separate table histories.

Unity Catalog, Apache Polaris, and AWS Glue

All three catalogs support Iceberg REST workflows, but they take different approaches to governance, authentication, hosting, and cross-engine interoperability.

Unity Catalog is a natural choice for organisations already running on Databricks. It provides a REST endpoint for Iceberg access and supports credential vending, allowing external engines to reach underlying storage without broad direct storage permissions. External engines still need the required privileges, including EXTERNAL USE SCHEMA where applicable. It also supports foreign tables, so tables owned by another catalog can be exposed through Unity Catalog without transferring ownership. Before building around managed Iceberg capabilities, verify current feature availability and preview limitations.

Apache Polaris takes a vendor-neutral approach designed for environments where multiple engines work with Iceberg tables without tying the platform to a single cloud or vendor. Its capabilities include role-based access control, OAuth2 authentication, credential vending, catalog federation, and centralised policy management. Unlike a fully managed-only service, Polaris can also be self-hosted, giving teams tighter control over deployment and infrastructure when Spark, Trino, Flink, and other engines share a common catalog.

AWS Glue fits teams whose data platform already relies on AWS services. Its Iceberg REST endpoint is exposed at https://glue.<region>.amazonaws.com/iceberg. Authentication uses AWS Signature Version 4 (SigV4), while permissions are governed through IAM and AWS Lake Formation, which can also issue temporary credentials depending on the configured integration.

  • Governance: Unity Catalog uses UC privileges; Apache Polaris uses RBAC and policies; AWS Glue uses IAM and Lake Formation.
  • Authentication: Unity Catalog uses token-based or OAuth-style auth; Apache Polaris uses OAuth2; AWS Glue uses SigV4.
  • Hosting: Unity Catalog is Databricks-managed; Apache Polaris can be self-hosted or managed; AWS Glue is AWS-managed.
  • Multi-engine support: All three support multi-engine access over Iceberg REST.
  • Best suited for: Unity Catalog fits Databricks environments; Apache Polaris fits multi-engine platforms; AWS Glue fits AWS environments.

How catalog and governance split-brain happen

When an existing Iceberg table is registered in a second catalog, the new catalog receives a reference to the current metadata location. It does not automatically take ownership away from the original catalog, so both catalogs hold independent pointers to what they consider the latest table version.

If both catalogs start at metadata version 10, and Spark writes through Catalog A while Trino writes through Catalog B, each catalog updates its own pointer and both commits succeed independently. You now have two divergent metadata histories. Even though both started from the same metadata file, their subsequent updates are never synchronised. This catalog split-brain leads to different query results across engines, missing updates when reading through one catalog, conflicting table histories, and potential data loss or broken downstream reporting.

There is a second failure mode: governance split-brain. For example, Lake Formation may allow a user to query a table while a federated catalog applies a different permission policy. Even if the underlying table metadata remains consistent, access decisions are no longer enforced from a single source of truth.

A practical four-layer ownership model

A clean way to structure an Iceberg platform is to separate responsibilities across four layers so engines never decide ownership on their own:

Storage layer. Actual table files live here. Storage permissions ensure that only authorised principals can write data or metadata files to the table location.

Catalog layer. Every table has one owning catalog responsible for coordinating commits, maintaining metadata references, and running table-level maintenance.

Federation layer. Other catalogs can expose the same table to external engines, but non-owning entries must be strictly read-only.

Compute layer. Spark, Trino, Flink, and DuckDB execute queries and transformations against configured catalogs, without independently deciding which catalog owns a table.

The four-layer ownership model: one owning catalog commits metadata and runs maintenance while federated catalogs expose read-only views over shared storage.
The four-layer ownership model: one owning catalog commits metadata and runs maintenance while federated catalogs expose read-only views over shared storage.

Infrastructure controls and safe table migration

Written ownership policies are useful, but they will not stop someone from accidentally registering an existing table in another catalog. Enforcement has to sit in the infrastructure itself:

  • Control storage write permissions: Only the owning catalog's service principal, or the short-lived credentials it explicitly vends, should have write access to the table's storage path.
  • Keep federated entries read-only: When another catalog exposes a table to an external engine, strip write privileges from that connection.
  • Maintain an ownership registry: Track table name, owning catalog, storage location, allowed read-only catalogs, and responsible team so migrations and architecture reviews have a clear reference.
  • Restrict table registration: Treat registering an existing metadata location as a privileged administrative operation, not a routine developer action.
  • Never use DROP TABLE to release ownership: Depending on the catalog and table configuration, dropping a table can delete the underlying files in object storage.

When moving a table between catalogs, the goal is to transfer ownership while preserving the table and its history, not to copy files. Databricks has discussed UNREGISTER and REGISTER APIs as a way to support this through the Iceberg REST specification, removing a catalog entry without deleting data and registering the returned metadata location in the destination catalog, though availability depends on the catalog implementation. A safe migration follows a clear sequence:

  1. Stop or pause all jobs writing to the table.
  2. Unregister the table from the original catalog without deleting its underlying files.
  3. Capture the latest metadata location.
  4. Register the table in the destination catalog using that metadata location.
  5. Update engine configurations, storage credentials, and access permissions.
  6. Validate row counts, Iceberg table UUID, current snapshot ID, latest commit timestamp, and table location before allowing writes again.

Detecting duplicate ownership before production breaks

Even with tight permissions, teams should run a regular inventory across all connected catalogs. Every Iceberg table carries a table_uuid in its metadata, which makes it straightforward to spot when multiple catalog entries point to the same underlying table identity.

Using PyIceberg (load_catalog, list_namespaces, list_tables, table.metadata.table_uuid, and table.location()), a scheduled check can scan every namespace across connected catalogs and group entries by table_uuid. A duplicate UUID does not automatically mean something is broken, since intentional read-only federation produces valid duplicates. Compare the inventory against an allowlist of approved read-only mirrors, alert on unexpected duplicates, and inspect metadata locations for suspicious entries. If two catalogs report different current metadata locations for the same table_uuid, treat it as a potential fork, halt writes immediately, and investigate the commit histories before attempting any repair.

Before connecting a second catalog to an existing Iceberg environment, get clear answers to eight operational questions:

  • Can this catalog write to tables owned by another catalog?
  • Are credentials tied to an individual user or a shared service principal?
  • Is read-only access actually enforced through storage and catalog permissions?
  • Who is allowed to register existing metadata locations?
  • Which catalog runs compaction and snapshot expiration?
  • What happens if two catalogs attempt maintenance on the same table?
  • Where is the authoritative permission policy maintained?
  • How will unexpected duplicate table registrations be detected?

Purposefully governed

There is no single catalog winner for every platform. Unity Catalog is often the simplest option when most workloads already run on Databricks and governance is integrated there. Apache Polaris is worth evaluating for independent, multi-engine platforms across clouds. AWS Glue paired with Lake Formation is a practical fit for AWS-focused teams.

Larger organisations often run more than one of these catalogs, and that works well as long as ownership boundaries are explicit and enforced in infrastructure. Iceberg gives teams the flexibility to share data across engines, but interoperability is only reliable when every system agrees on who owns the table.

  1. Assign one owning catalog per table; expose it to other catalogs through read-only federation.
  2. Enforce ownership at the storage layer so only the owning catalog's principal can write.
  3. Treat metadata registration as an administrative control and keep an ownership registry.
  4. Transfer ownership with unregister and register workflows, never DROP TABLE.
  5. Inventory table_uuid and metadata locations periodically against an allowlist of read-only mirrors.
  6. Verify write permissions, maintenance ownership, and authoritative policies before adding a new catalog.