Skip to main content
How-to guide
The Delta connector reads a Delta table’s transaction log and data files. It supports current and historical snapshots. Writes support append, whole-table overwrite, update, delete, and merge for supported existing external tables.

Before you start

Prepare an existing Delta table and storage access for the engine and workers. Use a private external table with order_id BIGINT and amount DOUBLE for the write examples. Its protocol must use minReaderVersion = 1 and minWriterVersion = 2. The sink requires a table that already has a valid Delta log. An empty directory is not a Delta table. To use SQL mutations, the existing table must also be available through a catalog that exposes the required Delta write capabilities. The examples use demo.examples.delta_orders. Replace this name with the qualified name of your private table. Catalog credentials and data-file credentials can differ. See Data access and the guide for your catalog service.

Read a table by path

Replace the path with the Delta table root, which contains its transaction log. Use this root rather than a folder of individual Parquet files.
For a catalog table, use its qualified name:
The reader applies the selected snapshot’s active data and supported delete metadata. A plain Parquet scan of the table directory does not provide Delta table semantics.

Read a historical version

Use a version that still exists in the table history:
The Spark Connect client also accepts version or timestamp selection. Use the spark connection described in Read and write files.
For timestamp selection, use timestampAsOf with an RFC 3339 timestamp that includes a timezone. Choose a version or timestamp, not both. Retention can make an older snapshot unavailable.

Append and overwrite

The following client example requires an existing empty external table with the sample schema. It first appends two rows. It then overwrites the table with one row.
Expect (1, 12.5) after overwrite. A new submission of a completed append adds rows again. Whole-table overwrite removes the old active rows from the new snapshot. Catalog tables also accept INSERT INTO and INSERT OVERWRITE TABLE when their catalog exposes the required commit operation.

Update, delete, and merge

These statements use the same private catalog table after the client example. Its catalog name must resolve to the same table root.
Expect one row, (1, 16.0). Row mutations use a full target read and rewrite the affected table data through the coordinated write path. They are subject to the table protocol and catalog capabilities.

Options

Use Delta source limits for metadata, scan, and object-count budgets. File parsing settings such as header and inferSchema do not apply to Delta tables.

Data types and limits

The Delta log defines field types, partitions, and the active table version. The reader and writer validate protocol features and schema support. Support for one Delta table does not imply support for every table produced by another platform. Writes require an existing external table. Managed Delta publication, creating a table through this sink, writer schema evolution, and arbitrary sink options are not supported. Tables marked append-only reject overwrite and row mutations. Catalogs can impose further write limits. The writer currently accepts protocol reader version 1 and writer version 2 only. It rejects table constraints and field metadata used for mapped, generated, or constrained columns. Reads and writes can therefore support different sets of Delta features. Basic nested structs, lists, and maps are checked recursively; required fields must not receive null values. A SQL script is a sequence of separate operations. Check the new table state after each confirmed write. Do not reuse the mutation examples on a shared production table.

Cleanup

Keep an existing shared table in place. If you prepared a private copy for this guide, remove that copy through its catalog and storage tools after the examples finish. Disconnecting a client does not delete table data.
Last modified on November 23, 2026