Deletion vectors
Mark rows as deleted without rewriting whole files, and the cost readers pay for it.
Step 3 · Data lake & lakehouse · Gold · Gold write patterns, lesson 1 of 4
On this page
Read first: Copy-on-write vs merge-on-read · The Delta transaction log (skip if you know them)
In plain words first
Rather than reprinting a 500-page register to remove one name, you keep a small list: "page 12, line 4 is deleted". Readers skip those lines; the register is reprinted only now and then.
A deletion vector is that small list, kept per data file.
Unlock the full lesson
You have read the free part. The rest of this advanced lesson:
- What it is
- Enabling and using
- In Iceberg
- Costs
- Try it yourself
- Common mistakes
- Key takeaways
- Interview prep with 3 follow-up questions
- Check yourself: 3 questions
Unlock it with the Complete pass (every advanced problem and lesson) or on its own.
Practise this
Interview problems on lakehouse, graded on hidden tests
Keep going
Up next · Gold write patterns · lesson 2 of 4 · 5 min readLiquid clustering
Incremental clustering in Delta Lake that replaces fixed partitions and Z-order.
Related lessons
Copy-on-write vs merge-on-readData lake & lakehouse · 5 min read
Iceberg format v3Data lake & lakehouse · 6 min read
VACUUM and retention
Previous: Apache Hudi: keys, indexes and table services
Primary sources: Delta: deletion vectors · Iceberg spec: deletion vectors