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.
Your SQL
Press one. Watch what is written.
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.
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.
| Button | New data files | Log entry | What to notice |
|---|---|---|---|
| Insert | One small file | add | Many small inserts mean many small files. Readers must open all of them. |
| Update / Delete | The affected file is rewritten, minus or with the change | remove old + add new | The old file stays on disk. That is how time travel works, and also why disks fill up. |
| Tidy small files | One big file made from many small ones | remove all + add one | Readers now open one file. No data changed, only its packaging. |
| Clean up the disk | None | None | Removed files and crash leftovers are really deleted. Old versions that needed them can no longer be read. |
| Insert, then crash | One file, never committed | None | Readers 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.