Skip to main content

can Snowflake, Trino, or Flink write to Iceberg tables in Unity Catalog

Summary

  • Yes, for managed Iceberg tables. Unity Catalog implements the Apache Iceberg REST catalog API at /api/2.1/unity-catalog/iceberg-rest, and Databricks lists Apache Spark, Apache Flink and Trino among the clients that can read from and write to Unity Catalog-registered Iceberg tables.
  • Snowflake writes through a catalog integration plus either a catalog-linked database or an externally managed Iceberg table, and its docs list INSERT, UPDATE, DELETE, MERGE and TRUNCATE TABLE for those tables.
  • Flink writes through the Iceberg Flink connector with 'catalog-type'='rest', using INSERT INTO for streaming or batch appends and INSERT OVERWRITE in batch jobs.
  • Check Trino carefully: Databricks lists it as a read and write client, but Trino's own Unity Catalog example sets iceberg.security to read_only.
  • Only managed Iceberg tables accept external writes. Delta tables with Iceberg reads enabled and foreign Iceberg tables are read-only through the Iceberg REST catalog.

can Snowflake, Trino, or Flink write to Iceberg tables in Unity Catalog

Yes, as long as the target is a managed Iceberg table. Unity Catalog serves the Apache Iceberg REST catalog API, and Databricks documents that supported clients such as Apache Spark, Apache Flink and Trino can read from and write to Unity Catalog-registered Iceberg tables through it. Snowflake documents its own write path into Unity Catalog, including a tutorial for bidirectional access. Trino is the one to verify: its documentation currently configures Unity Catalog as read-only.

What does it mean for another engine to write to Unity Catalog?

An Iceberg catalog stores each table's current metadata pointer and swaps it atomically when a writer commits. When Snowflake, Trino or Flink writes to a Unity Catalog table, it writes data files to cloud storage and commits new metadata through Unity Catalog's Iceberg REST endpoint. Unity Catalog can vend short-lived storage credentials for supported clients.

Snowflake vs Trino vs Flink: how each writes to Unity Catalog

Capability Snowflake Trino Apache Flink
Connection Catalog integration with CATALOG_SOURCE = ICEBERG_REST, then a catalog-linked database or CREATE ICEBERG TABLE with CATALOG_TABLE_NAME Iceberg connector with iceberg.catalog.type=rest and iceberg.rest-catalog.uri Iceberg Flink connector: CREATE CATALOG with 'type'='iceberg', 'catalog-type'='rest' and a 'uri'
Storage access Vended credentials (ACCESS_DELEGATION_MODE = VENDED_CREDENTIALS) or an external volume iceberg.rest-catalog.vended-credentials-enabled Databricks recommends credential vending for supported clients; otherwise the client needs its own access to the storage location
Documented write operations INSERT, UPDATE, DELETE, MERGE, TRUNCATE TABLE, COPY INTO Connector supports INSERT, UPDATE, DELETE, TRUNCATE and MERGE INSERT INTO appends from streaming jobs, INSERT OVERWRITE in batch jobs, UPSERT on v2 tables with a primary key
Creating tables In a catalog-linked database, CREATE ICEBERG TABLE creates the table in Unity Catalog too Not shown in Trino's Unity Catalog example CREATE TABLE in the Iceberg catalog; Databricks lists Flink among engines that can create managed Iceberg tables
Caveat to check Autocommit only, no multi-statement transactions; Snowflake doesn't sync remote catalog access control for users or roles Trino's Unity Catalog section says iceberg.security must be read_only, using the /api/2.1/unity-catalog/iceberg path INSERT OVERWRITE isn't supported in streaming jobs

Databricks documents /api/2.1/unity-catalog/iceberg-rest as the read and write endpoint and calls its separate read-only Iceberg endpoint legacy. Trino's published example points at the /iceberg path in read-only mode, so confirm write support for your Trino version first.

Which Unity Catalog tables accept writes from Iceberg clients?

Table type Read Write
Managed Iceberg Yes Yes
Foreign Iceberg (managed by another catalog) Yes No
Managed Delta with Iceberg reads enabled Yes No
External Delta with Iceberg reads enabled Yes No

If your tables are Delta Lake today, Iceberg engines can read them once you enable Iceberg reads (UniForm), but they can't write to them through the Iceberg REST catalog.

How Databricks approaches multi-engine Iceberg writes

External writes are an explicit opt-in on Databricks. A metastore admin enables external data access on the metastore, which is off by default. The principal behind the integration needs the EXTERNAL USE SCHEMA privilege on the schema, and ALL PRIVILEGES doesn't include it. Clients authenticate with OAuth or a personal access token, and credential vending issues short-lived credentials that inherit the privileges of the Databricks principal used to configure the integration.
Unity Catalog also protects table integrity. It blocks external engines from committing duplicate data files, and it runs lifecycle tasks such as snapshot expiration and file compaction on managed Iceberg tables. External clients can't run those maintenance operations themselves, and they can't create managed Iceberg tables with UUID, Fixed(L), TIME or nested STRUCT columns with required fields. Databricks recommends Iceberg client version 1.9.2 and above.
Test row-level operations first. Databricks lists position deletes and equality-based deletes on Iceberg v2 tables as unsupported and supports Iceberg v3 deletion vectors instead. Snowflake documents position deletes plus a copy-on-write option (ICEBERG_MERGE_ON_READ_BEHAVIOR set to 'DISABLED'), and Flink's UPSERT mode targets v2 tables. The full setup is in Access Databricks tables from Apache Iceberg clients.

FAQs

Can Snowflake create new Iceberg tables in Unity Catalog?

Yes. Snowflake's tutorial for bidirectional access to Unity Catalog uses a writable catalog-linked database to query, insert into and create Unity Catalog-managed Iceberg tables from Snowflake.

Can Flink stream into a Unity Catalog Iceberg table?

Yes. Databricks lists Flink as a supported Iceberg REST client, and Iceberg's Flink connector appends with INSERT INTO from streaming jobs. INSERT OVERWRITE needs a batch job.

Can these engines write to my Delta tables in Unity Catalog?

Not through the Iceberg REST catalog, where Delta tables with Iceberg reads enabled are read-only. Delta clients have a separate path, the Unity REST API, which Databricks documents on its own page.

What permissions does a writing engine need?

External data access enabled on the metastore, EXTERNAL USE SCHEMA on the schema, and the table-level privileges for the operation, granted to the Databricks principal that configures the connection.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.