Özer Cem KELAHMETKELAHMET
Articles · Delta Lake

Delta Lake's transaction log explained: commits, checkpoints, deletion vectors and VACUUM

A Delta table is a folder of Parquet files plus a log that says which ones count. We write, delete and update a table with delta-rs 1.7.0, read every commit file, watch a checkpoint appear and see why VACUUM refuses to run with zero retention.

Download Markdown
At a glance
Reading time
13 min
Sections
10
Code examples
4
Tables
2
Sources
6
Published
23 Nov 2026
In 30 seconds
What changed
delta-rs reaches 1.0 for Rust
Why it matters
The log explains several day-to-day behaviours.
What to do
Read your own log

Delta Lake makes a directory of Parquet files behave like a database table: commits are atomic, readers see a consistent snapshot, and you can query the table as it was last week. All of that comes from one folder, _delta_log, that sits next to the data. Understanding that folder explains Delta's guarantees, its costs and most of its operational surprises, from slow first queries to VACUUM deleting files someone still needed.

This article opens the log. Using the Python deltalake package (delta-rs) version 1.7.0, we write three batches, delete and update rows, read each commit file, create a checkpoint, travel back in time and try to vacuum. Then we connect what we saw to the Delta protocol specification: actions, checkpoints, deletion vectors, optimistic concurrency and the newer catalog-managed tables feature.

What happened

delta-rs reaches 1.0 for Rust (21 September 2026)

The delta-rs project, a Rust implementation of Delta Lake with Python bindings, tagged rust-v1.0.0 on 21 September 2026. Its changelog lists an upgrade to DataFusion 55, support for creating tables with column mapping, a streaming history API, and fixes including one where VACUUM was slow on datasets with many small files. Closed feature requests include support for Unity Catalog managed tables.

deltalake 1.7.0 for Python (23 November 2026)

The Python package deltalake 1.7.0 was published on PyPI on 23 November 2026, and it is the version used in this article. One change is visible straight away: reading a table with the PyArrow engine of to_pyarrow_table now raises a deprecation warning recommending the DataFusion engine instead.

On the JVM side, delta-spark 4.4.0 was published on 20 August 2026 and 4.4.1 on 5 October 2026. The open-source Unity Catalog documentation pairs delta-spark 4.4.1 with Spark 4.2.

The log is the table

The Delta protocol's goals are serializable ACID writes, snapshot isolation for reads, scalability to billions of files, a self-describing table with no separate metastore required, and incremental processing by tailing the log. It achieves them with multi-version concurrency control: writers never edit files in place. They write new files, then commit a log entry that says which files to logically add and which to logically remove.

Think of a shared accounting ledger. Nobody erases old entries. Each new line says "add this, cancel that", and the balance at any date is the sum of the lines up to that date.

Commit files

Each commit is a JSON file in _delta_log, named with the version number zero-padded to 20 digits: 00000000000000000000.json, 00000000000000000001.json and so on. The protocol calls these files the unit of atomicity. Each line in the file is one action.

After three writes of 1,000 rows each, our log held three commit files of 1,391, 845 and 845 bytes. The first is larger because it also carries the protocol and metaData actions that define the table: reader and writer protocol versions (1 and 2 here), the schema, partition columns and table properties.

Version 1, an append, contains two actions. Simplified:

{"commitInfo": {"operation": "WRITE", "operationParameters": {"mode": "Append"},
                "engineInfo": "delta-rs:py-1.7.0"}}
{"add": {"path": "part-00000-79d2...-c000.snappy.parquet", "size": 6991,
         "dataChange": true,
         "stats": {"numRecords": 1000,
                   "minValues": {"order_id": 1001, "country": "TR"},
                   "maxValues": {"order_id": 2000, "country": "TR"},
                   "nullCount": {"order_id": 0, "country": 0, "amount": 0}}}}

The add action carries per-file statistics. That is how Delta skips files: a query for order_id = 5 can ignore this file because its range is 1,001 to 2,000, without opening it.

Main action types

Table 1. Main action types
Action Meaning
metaData Schema, partition columns, table properties
protocol Minimum reader and writer versions, and table features
add A data file is now part of the table, with statistics and optional deletion vector
remove A data file is no longer part of the table (it stays on disk until vacuumed)
cdc A change data file for the change data feed
txn An application's transaction identifier, used for idempotent streaming writes
commitInfo Who did what: operation, parameters, metrics
domainMetadata Configuration owned by a specific feature, such as clustering

A delete that rewrites nothing

Next we ran dt.delete("country = 'TR'"). Every Turkish row lived in one file, so version 3 contains just a commitInfo and a single remove action for that file. The table dropped from 3,000 to 2,000 rows and from three files to two, and no new data was written. The removed file still sits on disk.

An update that rewrites a file

Then we updated ten German rows: dt.update({"amount": "amount * 1.2"}, predicate="country = 'DE' AND order_id <= 10"). Version 4's metrics report num_updated_rows: 10, num_copied_rows: 990, num_added_files: 1 and num_removed_files: 1. To change 10 rows, the writer copied the other 990 into a new file. This is copy-on-write, and it is why small updates on big files are expensive.

Reading the log yourself

You do not need a special tool to inspect a commit. Each file is newline-delimited JSON, so a few lines of Python print the action types and their key fields:

import json, pathlib

log = pathlib.Path("orders/_delta_log")
for commit in sorted(log.glob("*.json")):
    actions = [json.loads(line) for line in commit.open()]
    kinds = [next(iter(a)) for a in actions]
    op = next(a["commitInfo"]["operation"] for a in actions if "commitInfo" in a)
    print(commit.name, op, kinds)

On our table this prints WRITE with commitInfo, protocol, metaData and add for version 0, WRITE with commitInfo and add for versions 1 and 2, DELETE with commitInfo and remove for version 3, and UPDATE with commitInfo, add and remove for version 4. Running a script like this against a production table is often the fastest way to see whether a job appends, overwrites or rewrites files on each run.

Deletion vectors: change rows without rewriting files

Deletion vectors fix exactly that cost. Instead of rewriting a file to drop or change a few rows, the writer records the positions of the deleted rows in a compact bitmap and attaches it to the file's add action. Updated rows are written to a new small file, and their old versions are marked deleted in the bitmap.

The protocol's requirements are specific. A table must use reader version 3 and writer version 7, with the deletionVectors feature listed in both readerFeatures and writerFeatures, and writers write new deletion vectors only when delta.enableDeletionVectors is true. Vectors can be stored inline in the log or in a separate file referenced by a relative or absolute path. Our table, created with protocol versions 1 and 2, does not have the feature, which is why the update rewrote the file.

Table 2. Deletion vectors: change rows without rewriting files
Approach Update 10 rows in a 1,000-row file Read cost Cleanup
Copy-on-write Rewrite 990 unchanged rows plus 10 new None extra Old file removed, vacuumed later
Deletion vectors Write a bitmap and a small file with 10 rows Readers apply the bitmap OPTIMIZE or purge later rewrites files to drop deleted rows

Like Iceberg's merge-on-read, this trades cheaper writes for slightly more work at read time, which suits CDC and frequent MERGE workloads.

Checkpoints: so readers do not replay everything

To build a snapshot, a reader replays every action from version 0. After thousands of commits that becomes slow. The protocol's answer is the checkpoint: a Parquet file containing the complete replay of all actions up to a version, with cancelled actions removed. Readers should start from the newest checkpoint and replay only the JSON files after it.

We called dt.create_checkpoint() after version 4. The log then contained 00000000000000000004.checkpoint.parquet and a _last_checkpoint pointer file reading {"version":4,"size":6,"sizeInBytes":14633,"numOfAddFiles":2}. A reader now opens _last_checkpoint, loads the checkpoint, and reads any later JSON commits.

Writers usually checkpoint automatically every few commits; the property delta.checkpointInterval controls how often in Spark-based writers. The protocol also defines log compaction files, version checksum files and multi-part or sidecar-based checkpoints for very large tables.

Time travel and history

Because old files stay on disk and the log keeps every version, any version can be rebuilt:

from deltalake import DeltaTable
DeltaTable("orders", version=1).to_pyarrow_table().num_rows   # 2000

Version 1 had 2,000 rows (the German and Turkish batches), and it is still readable after the delete. dt.history() returned operations for versions 4 to 0: UPDATE, DELETE, WRITE, WRITE, WRITE.

VACUUM: when the past is deleted

Time travel works only while old files exist. VACUUM deletes data files that are no longer referenced by the current version and are older than a retention threshold. The protocol notes a default retention period of 7 days.

In our test, dt.vacuum(retention_hours=168, dry_run=True) returned an empty list, because the removed files were seconds old. Asking for zero hours failed with "Invalid retention period, minimum retention for vacuum is configured to be greater than 168 hours, got 0 hours". Only with enforce_retention_duration=False did the dry run list the 2 removed files.

That guard exists for a reason. A long-running reader or streaming job may still be reading an older version. If you vacuum below its age, its files vanish mid-query. Treat the retention period as the oldest version any job may need, plus a safety margin.

Concurrency: optimistic commits

Two writers can work on the same table at once. Each reads the latest version, say 10, writes its data files, and tries to create 00000000000000000011.json. The storage must guarantee that only one creation succeeds (put-if-absent semantics). The loser re-reads the log, checks whether the winner's changes conflict with its own (for example, both deleted rows from the same file), and either retries as version 12 or fails with a conflict error.

The newer catalog-managed tables feature changes who decides. With it enabled, the protocol says the managing catalog becomes the source of truth for whether a commit attempt succeeded, recently ratified commits may not yet be published to _delta_log, and filesystem-based access is not supported: clients must go through the catalog.

What it means in practice

The log explains several day-to-day behaviours. Many tiny appends create many tiny files and many JSON commits, so compaction (OPTIMIZE) and regular checkpoints keep reads fast. Small updates on large files are expensive without deletion vectors. VACUUM is safe only when its retention is longer than any reader's lifetime. And because statistics live in the log, data skipping works only on columns that have statistics and on data that is clustered by those columns, for example through Z-ordering or liquid clustering.

These pieces show up across the platform. Medallion architecture pipelines rely on Delta's atomic commits so silver tables never expose half-written batches. Change data capture merges benefit from deletion vectors. Schema evolution is a metaData action. The Delta Lake tool page, the lakehouse page and the Databricks page cover the surrounding ecosystem, and the storage and formats topic compares Delta with Apache Iceberg.

What to do now

  1. Read your own log. Open the latest JSON commits of an important table and check what operations and metrics they record.
  2. Check protocol versions and features. Confirm whether deletion vectors are enabled before planning heavy UPDATE or MERGE work.
  3. Enable deletion vectors where updates are frequent. Make sure every engine that reads the table supports reader version 3 and writer version 7 first.
  4. Keep checkpoints regular. Verify that _last_checkpoint advances; long runs of JSON commits slow every reader.
  5. Compact small files. Schedule OPTIMIZE for tables fed by frequent small appends.
  6. Set VACUUM retention from your longest reader. Never bypass the retention check in production without knowing every consumer's maximum query or stream lag.
  7. Use history for audits. DESCRIBE HISTORY in Spark or dt.history() in Python show who changed what and when.
  8. Plan for catalog-managed tables. If your platform enables them, move readers and writers to catalog-based access instead of direct paths.

Risks and open questions

Vacuuming too aggressively breaks readers and time travel. Deleted files cannot be recovered from the log alone.

Protocol upgrades are one-way for old clients. Enabling features such as deletion vectors raises reader and writer versions, and older engines can no longer read or write the table.

Statistics only help clustered data. If values are spread across all files, min-max ranges overlap and nothing is skipped.

Implementations differ. delta-rs, Spark and other engines support different subsets of table features, so test cross-engine reads before enabling new features.

Watch next: adoption of catalog-managed tables across engines, and how delta-rs after its 1.0 release closes feature gaps with the Spark implementation, such as Unity Catalog managed tables.

Frequently asked questions

What is the _delta_log folder?

It is the transaction log of a Delta table. It holds one JSON file per commit, listing actions such as adding or removing data files, plus periodic Parquet checkpoints that summarise the table state.

How does Delta Lake time travel work?

Every version is a point in the log. Readers rebuild the table by replaying actions up to that version, starting from a checkpoint when one exists. It works as long as the referenced data files have not been removed by VACUUM.

What does VACUUM delete?

It deletes data files that are no longer referenced by the current table version and are older than the retention threshold, 7 days by default. It does not delete files that the current version still uses.

What are deletion vectors in Delta Lake?

They are bitmaps attached to a data file that mark rows as deleted, so deletes and updates do not need to rewrite whole files. They require reader version 3, writer version 7 and the deletionVectors table feature.

Can two jobs write to the same Delta table at once?

Yes. Delta uses optimistic concurrency: each writer tries to create the next commit file, only one succeeds, and the other checks for conflicts and retries or fails. Conflicts happen when both touch the same files in incompatible ways.

Summary

A Delta table is Parquet data plus _delta_log, a sequence of JSON commits whose add and remove actions define which files make up each version, summarised periodically in Parquet checkpoints. In our delta-rs 1.7.0 test, a delete of one whole file produced a single remove action, an update of 10 rows copied 990 others into a new file, a checkpoint appeared at version 4, time travel to version 1 still returned 2,000 rows, and VACUUM refused zero-hour retention. Deletion vectors avoid most rewrite cost, and catalog-managed tables move the commit decision to the catalog. With delta-rs reaching 1.0 in September and Python 1.7.0 out on 23 November 2026, the same log now underpins a growing set of engines.

Sources

Cite this article

Kelahmet, Ö. C. (2026, November 23). Delta Lake's transaction log explained: commits, checkpoints, deletion vectors and VACUUM. Özer Cem KELAHMET. https://www.ozercemkelahmet.com/articles/delta-lake-transaction-log-explained

BibTeX
@online{kelahmet2026delta,
  author = {Kelahmet, {\"O}zer Cem},
  title  = {{Delta Lake's transaction log explained: commits, checkpoints, deletion vectors and VACUUM}},
  year   = {2026},
  month  = {nov},
  url    = {https://www.ozercemkelahmet.com/articles/delta-lake-transaction-log-explained}
}
Version historyfirst version
  1. Published

Factual corrections are listed here with what changed. Wording and formatting edits are not listed.

Last updated Nov 23, 2026
Type to search.
    ↑↓ navigate↵ open