Apache Iceberg vs Delta Lake CDC Deletes: Update/Delete Semantics, Deletion Vectors and Auditability
Compare Iceberg and Delta Lake CDC deletes, deletion vectors, reader compatibility, compaction and retained audit events before choosing an engine.
Author: jackey.ye | Last updated: 2026-11-24
Iceberg and Delta Lake both support row-level CDC deletes, but they gate them differently. Iceberg defines position and equality delete files in format-version 2 and deletion vectors in format-version 3; Delta Lake enables deletion vectors from 2.3.0 (experimental), with DELETE from 2.4.0 and MERGE from 3.1.0. Which mode your MERGE actually uses is an engine decision, not a format guarantee.
That last sentence is the rule this comparison is built on. A table format defines what is written to storage and what a conforming reader must understand; an engine decides how a given DELETE, UPDATE or MERGE is physically executed. Observed behavior in Spark, Databricks Runtime or another engine therefore tells you about that engine's implementation as much as about the format. Every version claim below is scoped to a named spec, protocol or runtime version, and no benchmarks or cost figures are used.
Comparison at a Glance: Iceberg vs Delta Lake for CDC Deletes
The matrix below summarizes the six criteria; each cell is version-scoped and links to the governing documentation.
Criterion | Apache Iceberg | Delta Lake |
|---|---|---|
Update/delete semantics | Format-version 2 adds row-level deletes via position and equality delete files; sequence numbers order data against delete files (spec) | DELETE, UPDATE and MERGE are table operations; physical behavior depends on whether deletion vectors are enabled (docs) |
Copy-on-write vs merge-on-read | Explicit writer-side choice: | Expressed through deletion vectors (soft deletes resolved at read) versus file rewrite (docs) |
Deletion vectors | Format-version 3 feature stored as Puffin blobs; at most one per data file per snapshot (spec) | Delta Lake 2.3.0+ (experimental); SCAN 2.3.0, DELETE 2.4.0, UPDATE 3.0.0 (default 3.1.0), MERGE 3.1.0 (docs) |
Reader compatibility gating |
| Enabling deletion vectors upgrades the table protocol; non-supporting clients cannot read the table (versioning) |
Compaction |
|
|
CDC auditability | Snapshots plus | Change Data Feed records |
Evaluation Criteria: How This Comparison Is Structured
Six criteria drive the sections that follow: update/delete semantics, merge-on-read versus copy-on-write, deletion vectors, reader compatibility, compaction, and CDC auditability. Criterion zero sits underneath all of them: separate what the format guarantees from what the engine does.
The separation matters because a MERGE you observe in one engine may reflect that engine's implementation, not the table spec. A format can define delete files and deletion vectors without mandating that a particular engine use them for a particular statement. Read the spec or protocol first to establish the on-disk contract, then read the engine's documentation to learn how it executes the operation. No benchmarks or cost figures appear here; every claim traces to official Iceberg or Delta Lake documentation.
Update and Delete Semantics: What the Specs Actually Define
At spec level, Iceberg defines the on-disk contract while Delta Lake's protocol defines table features and reader/writer protocol versions. Iceberg format-version 2 introduces row-level deletes through position delete files and equality delete files, and the relative age of data versus delete files relies on a sequence number assigned to every successful commit (Iceberg spec). Format-version 3 adds deletion vectors and row lineage, with _row_id and _last_updated_sequence_number metadata fields.
Delta Lake approaches the same problem through table operations. DELETE, UPDATE and MERGE are statements whose physical behavior depends on whether deletion vectors are enabled: without them, a single-row delete rewrites the entire Parquet file containing the record; with them, rows are marked as removed and reads resolve current state by applying the vectors (Delta docs). The Delta protocol marks features as either write-protocol or read/write-protocol, so enabling a read/write feature such as deletion vectors raises the bar for every reader (versioning).
Merge-on-Read vs Copy-on-Write: Tradeoffs by Format and Engine
Iceberg makes the tradeoff explicit at the writer level. RowLevelOperationMode offers two values: in copy-on-write, changes are materialized immediately and matching data files are replaced, so unchanged rows are copied into the new file; in merge-on-read, deleted and updated record IDs are written into delete files applied during reads, while updated and inserted records go into new data files committed alongside them. Copy-on-write tends to consume more time and resources during writes without adding read overhead; merge-on-read is faster to write but requires more work to apply delete files during reads (Iceberg Javadoc).
Delta Lake expresses the same tradeoff through deletion vectors rather than a named mode. With deletion vectors enabled, some operations mark rows as removed without rewriting the Parquet file, and subsequent reads apply the deletions to resolve current state (Delta docs).
Which mode an engine actually uses for a given MERGE is an engine decision, not a format guarantee. Iceberg's Spark integration, for example, requires the Iceberg Spark extensions for row-level DELETE and UPDATE, and its write metrics distinguish copied rows (rewritten in copy-on-write, 0 in merge-on-read) from deleted rows (Spark writes). Treat that as a statement about the Spark integration, not about every Iceberg engine.
Deletion Vectors: Availability, Gating and Protocol Upgrades
Delta Lake deletion vectors arrived incrementally, and each operation has its own first-available and default-enabled version:
Operation | First available | Enabled by default since |
|---|---|---|
SCAN | 2.3.0 | 2.3.0 |
DELETE | 2.4.0 | 2.4.0 |
UPDATE | 3.0.0 | 3.1.0 |
MERGE | 3.1.0 | 3.1.0 |
First-available and default-enabled Delta Lake versions for deletion-vector support by operation, from the Delta Lake deletion vectors documentation. Iceberg has no equivalent per-operation version ladder: deletion vectors are a format-version 3 feature. Versions are release gates, not measured performance.
Source: Delta Lake deletion vectors documentation. The feature is available in Delta Lake 2.3.0 and above and is in experimental support mode. You enable it with ALTER TABLE <table_name> SET TBLPROPERTIES('delta.enableDeletionVectors' = true), which upgrades the table protocol; in Delta Lake 3.0 and above you can drop the table feature to restore compatibility with other clients.
Iceberg treats deletion vectors as a format-version 3 feature. They are a binary representation of deletes for a single data file, more efficient at execution time than position delete files, and stored using the deletion-vector-v1 blob definition from the Puffin spec. Unlike equality or position delete files, there can be at most one deletion vector for a given data file in a snapshot, and writers must merge new deletes with existing vectors or position delete files (Iceberg spec).
Reader Compatibility: Who Fails and Why
Enabling deletion vectors is a compatibility decision in both formats, but the gate is different. In Delta Lake, the protocol upgrade means the table will not be readable by Delta Lake clients that do not support deletion vectors (Delta docs). The read protocol lists every feature a reader must understand, so upgrading it requires that all reader applications support the added feature; a write-only protocol upgrade might be less disruptive because older systems can still read the table (versioning).
In Iceberg, format-version is a hard gate: implementations must throw an exception if a table's version is higher than the supported version, and the version number is incremented precisely when older readers would not read newer features correctly (Iceberg spec). A v2 reader cannot read a v3 table.
Keep the two gates distinct. Databricks publishes its own client matrix for reading and writing deletion-vector tables — for example, Databricks Runtime 12.2 LTS and above to read, and OSS Delta Lake 2.3.0 and above for reads in OSS Spark (Databricks docs). Those are Databricks Runtime claims; they do not describe every OSS Delta Lake client.
Compaction and Maintenance: What Cleans Up What
Delta Lake resolves soft deletes when data files are rewritten, triggered by a DML command with deletion vectors disabled, by OPTIMIZE, or by REORG TABLE ... APPLY (PURGE). UPDATE, MERGE and OPTIMIZE have no strict guarantee of resolving all recorded changes — some may not be applied if target files contain no updated records or are not compaction candidates. REORG TABLE ... APPLY (PURGE) rewrites all data files containing records modified via deletion vectors, is idempotent, and only rewrites files with soft-deleted data. Old files persist until VACUUM, and the retention threshold should be measured from the purge completion timestamp (Delta docs).
Iceberg's maintenance actions are separate and composable: rewriteDataFiles compacts data files, rewritePositionDeletes rewrites position delete files, and rewriteManifests regroups files into manifests. During compaction, rewriteDataFiles can remove dangling delete files when remove-dangling-deletes is true, and rewritePositionDeletes filters dangling records from the position delete files it rewrites (Iceberg maintenance).
For CDC workloads the practical consequence is the same in both formats: delete volume accumulates between maintenance runs, so the maintenance cadence — not the format alone — determines how much read-time work remains.
CDC Auditability: Format Metadata vs a Retained Change Log
No — neither table format alone is a durable CDC audit trail. Each provides version history, but that history follows retention policy.
Delta Change Data Feed records row-level changes with _change_type (insert, update_preimage, update_postimage, delete), _commit_version and _commit_timestamp. Its files live in the _change_data folder and follow the table's retention policy, so running VACUUM deletes change data feed data as well. The Delta documentation itself lists an audit trail table as a use case: capturing the change data feed as a Delta table provides perpetual storage (Delta CDF).
Iceberg provides snapshots, snapshot-log (timestamp and snapshot ID pairs) and metadata-log (previous metadata file locations). Both are optional fields, and when snapshots are expired from the valid snapshot list, all snapshot-log entries before the expired snapshot should be removed; tables can also be configured to keep only a fixed-size metadata log (Iceberg spec).
If you need durable CDC auditability, materialize changes into a separately retained event table with its own retention policy. The table format is the substrate, not the audit log.
Proof-of-Concept Evaluation: Numbered Steps with Expected Results
Run these steps against a non-production table in each format. Each expected result is a checkable observation, not a performance target.
Create a table with row-level delete support. For Iceberg, create a format-version 2 table; for Delta Lake, create a table and note its protocol. Expected: the Iceberg table metadata shows
format-version: 2; the Delta table log shows the protocol version before any feature is enabled.Enable deletion vectors. For Delta Lake, run
ALTER TABLE <table_name> SET TBLPROPERTIES('delta.enableDeletionVectors' = true). For Iceberg, use a format-version 3 table. Expected: the Delta table protocol is upgraded and the deletion-vector feature is recorded; the Iceberg table metadata showsformat-version: 3.Run DELETE, UPDATE and MERGE. Apply one statement of each type against a small, known row set. Expected: row counts and values match the intended end state, and new delete files or deletion vectors appear in the table metadata rather than every data file being rewritten.
Inspect metadata. Read the Iceberg manifest entries (content
0DATA,1POSITION DELETES,2EQUALITY DELETES) or the Delta transaction log. Expected: delete artifacts are attributable to the statements you ran, and for Iceberg there is at most one deletion vector per data file per snapshot.Test an older reader. Attempt to read the table with a client that predates the feature. Expected: the read fails rather than returning silently wrong results — an exception for an unsupported Iceberg
format-version, or a protocol error for a Delta client without deletion-vector support.Run compaction. Use
REORG TABLE ... APPLY (PURGE)thenVACUUMfor Delta Lake, orrewriteDataFileswithremove-dangling-deletesfor Iceberg. Expected: files carrying soft-deleted rows are rewritten, and old files are removed only after the retention threshold.Query the change feed. Read Delta CDF for the affected versions, or inspect Iceberg snapshots and
snapshot-log. Expected: change events carry commit version and timestamp, and you can confirm what happens to them afterVACUUMor snapshot expiration.Repeat one MERGE under a second engine. Expected: if the physical outcome (delete files versus rewritten data files) differs, the difference is attributable to the engine, not the format.
Where these steps feed a layered pipeline, the small-file compaction and retention guide hub covers CDC handling and promotion gates for bronze, silver and gold.
Who Should Choose Which
Choose Iceberg when you want an open specification with explicit writer-side mode control and a multi-engine reader fleet. The RowLevelOperationMode choice is documented and visible, format-version 3 gives you deletion vectors as a spec feature, and the format-version gate is predictable. The cost: v3 tables are unreadable by v2 readers, and you must coordinate the upgrade across every engine.
Choose Delta Lake when you are already on the Delta protocol and want Change Data Feed and Databricks Runtime tooling. Deletion vectors are well documented per operation and version, and CDF gives you row-level change events out of the box. The cost: enabling deletion vectors upgrades the protocol and breaks non-supporting readers, and CDF follows table retention unless you materialize it elsewhere.
Neither choice wins on auditability alone — both require a separately retained log for durable CDC history.
Verdict
Neither format is universally better for CDC deletes. The decision hinges on three things: whether your reader fleet can absorb the compatibility gate, whether you need a durable audit log (neither format provides one alone), and which engine executes your MERGE. Restate the format-versus-engine rule as your takeaway — read the spec to learn the contract, read the engine docs to learn the execution, and test both in a proof of concept before committing.
Singdata's lakehouse stores data in open formats on Apache Iceberg, so it is one option to include in that proof of concept and validate against the steps above.
Frequently Asked Questions
Which spec or runtime version is required for row-level deletes and deletion vectors in Iceberg and Delta Lake respectively?
Iceberg row-level deletes require format-version 2; deletion vectors are a format-version 3 feature (Iceberg spec). Delta Lake deletion vectors are available from Delta Lake 2.3.0 (experimental), with DELETE supported from 2.4.0, UPDATE from 3.0.0 and MERGE from 3.1.0 (Delta docs).
Will existing readers fail or misread if deletion vectors are enabled, and what protocol versions gate that?
In Delta Lake, enabling deletion vectors upgrades the table protocol, and clients without deletion-vector support cannot read the table; the feature can be dropped in Delta Lake 3.0 and above (Delta docs). In Iceberg, format-version is a hard gate: implementations must throw an exception if a table's version is higher than the supported version, so v2 readers cannot read v3 tables (Iceberg spec).
What does compaction clean up in each format, and why does it matter for CDC workloads?
Delta Lake uses OPTIMIZE and REORG TABLE ... APPLY (PURGE) to rewrite files carrying soft-deleted rows, followed by VACUUM to remove old files; OPTIMIZE, UPDATE and MERGE have no strict guarantee of resolving all deletion vectors (Delta docs). Iceberg uses rewriteDataFiles, rewritePositionDeletes and rewriteManifests, with remove-dangling-deletes during compaction (Iceberg maintenance). Both matter for CDC because delete volume accumulates between maintenance runs.
Can the table format itself serve as a CDC audit trail, or is a separate retained event log required?
Neither format alone is a durable audit log. Delta Change Data Feed records _change_type, _commit_version and _commit_timestamp, but its files follow table retention and are removed by VACUUM, so the Delta documentation suggests materializing CDF into a separate audit trail table (Delta CDF). Iceberg snapshots and metadata logs provide version history subject to expiration (Iceberg spec). A separately retained event table is required for durable CDC auditability.
How do I separate table-format semantics from engine behavior when evaluating MERGE/DELETE?
Read the spec or protocol first to establish what the format guarantees on disk, then check the engine's documentation for how it implements MERGE and DELETE. For example, Iceberg defines copy-on-write and merge-on-read as writer-side modes, but which mode a given engine uses is an engine decision (Iceberg Javadoc). Repeat the same operation under a second engine to confirm which behavior comes from the format and which from the engine.
Related implementation guides
Review the small-file compaction and retention guide alongside the medallion implementation checklist.