Skip to main content
How-to guide
The Iceberg connector reads tables through a configured catalog. It supports append, whole-table overwrite, update, delete, and merge when the table and catalog support the operation. Native writes produce Parquet data files.

Before you start

Connect an existing catalog using Catalog connections. Prepare access to both its metadata service and the table’s storage. A successful metadata connection test does not confirm permission to read or write data files. Choose an existing private namespace and an unused table name. The examples use demo.examples.connector_orders. Replace it with your catalog, namespace, and private table name throughout the guide. Run the statements in one Workbench session. The catalog must support table creation for the sample below. For an existing table, start with the read query and use only the operations its catalog allows.

Create sample data and read it

This creates a small format v2 table. It has two rows and an amount total of 20.0.
The schema comes from the catalog’s Iceberg metadata. The engine reads the files selected by the table snapshot. Reading its storage directory as a plain Parquet folder does not apply Iceberg snapshot or delete semantics.

Append rows

Expect 3. A new submission of the same append adds those rows again.

Update and delete rows

Expect (1, 12.5) and (2, 8.5). The connector uses table row identity and the target-read contract for these operations. The catalog and table version must permit the required changes.

Merge rows

Use one source row per target key. This example updates order 2 and adds order 4.
Expect (1, 12.5), (2, 9.0), and (4, 6.0).

Overwrite the whole table

This replaces all current rows. Run it only on the private example table.
Expect one row, (5, 20.0). This guide covers whole-table replacement. Partition and predicate overwrite have separate capability requirements.

Options and table properties

Use TBLPROPERTIES for accepted values, defaults, and full examples. These settings belong to Iceberg tables. They are separate from the options accepted by the direct Parquet file connector.

Data types and limits

Iceberg field IDs and metadata define the table schema. A type supported by a SQL expression can still be rejected by a table writer. Keep inserted columns compatible with the destination schema. Use SQL writes for supported statement forms. Reads and writes support format v3. Native table maintenance is limited to format v2. Format upgrades cannot be reversed. Catalog services can expose a narrower set of table operations than the connector. Creating a table and publishing its first write requires catalog creation and publication support. A staged new table accepts its initial append; later mutations apply after that table is published. Credentials delegated by a catalog must also be valid for the data-file operation. The write is visible after its commit is confirmed. A sequence of SQL statements is not a multi-statement transaction. Read the table after each write when checking a result.

Cleanup

Drop only the private table created for this guide. Follow the catalog’s retention policy for its stored files.
Last modified on November 23, 2026