Home › Learn › Delta in motion

Delta in motion: watch a table change, one commit at a time

A Delta table is just files in a folder plus a log. Press a button and watch exactly what gets written. New data files land first, but nobody can see them until the log entry arrives. Then crash a write, pile up small files, tidy them with OPTIMIZE, and try to time travel after VACUUM.

v0Latest version
0Files a reader opens
0Files on disk
0Dead weight on disk

Your SQL

Press one. Watch what is written.

-- nothing yet

Inside the table folder

Data files on the left, the transaction log on the right.

Solid = in the table · dashed = written, not committed yet · dotted, struck through = removed, still on disk · red dashed = orphan from a crash

What a reader sees

The table at the latest version.

version 0 (latest)

Try this order: insert three times, update a row, tidy small files, then drag the time-travel slider back. Then clean up the disk and drag it back again.

What just happened

    What each button writes

    Delta never edits a file. Every change writes new files and then adds one line to the log. That one habit gives you transactions, history and safe concurrent readers.

    ButtonNew data filesLog entryWhat to notice
    InsertOne small fileaddMany small inserts mean many small files. Readers must open all of them.
    Update / DeleteThe affected file is rewritten, minus or with the changeremove old + add newThe old file stays on disk. That is how time travel works, and also why disks fill up.
    Tidy small filesOne big file made from many small onesremove all + add oneReaders now open one file. No data changed, only its packaging.
    Clean up the diskNoneNoneRemoved files and crash leftovers are really deleted. Old versions that needed them can no longer be read.
    Insert, then crashOne file, never committedNoneReaders see nothing, so the half-finished write never leaks. The orphan waits for the next clean-up.

    Simplified on purpose: real Delta also writes checkpoints every ten commits, tracks statistics per file, and keeps removed files for a retention period (seven days by default) before clean-up is allowed to delete them. Here, clean-up deletes immediately so you can see the effect.

    Keep going

    Read the full story in how Delta works, compare formats in Delta vs Iceberg, see time travel vs SCD2, or watch a whole pipeline in data in motion.