Apache Hudi: keys, indexes and table services
Record keys, COW and MOR tables, the index, the timeline, and when Hudi is the right choice.
Step 3 · Data lake & lakehouse · Gold · Iceberg and Hudi, lesson 4 of 4
On this page
Read first: Open table formats · Copy-on-write vs merge-on-read (skip if you know them)
In plain words first
Hudi works like a warehouse with a barcode index: every item has a key, and the index says which shelf it is on. To update an item you go straight to its shelf, instead of searching the whole warehouse. That makes frequent upsertsupsert: Update a row if its key exists, insert it if not. Done with MERGE. Learn more → cheap.
Unlock the full lesson
You have read the free part. The rest of this advanced lesson:
- Keys, ordering and file groups
- Copy-on-write and merge-on-read
- Writing from Spark
- The index
- The timeline and table services
- 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 · new module: Gold write patterns · 5 min readDeletion vectors
Mark rows as deleted without rewriting whole files, and the cost readers pay for it.
Related lessons
Copy-on-write vs merge-on-readData lake & lakehouse · 6 min read
Open table formatsData lake & lakehouse · 5 min read
Format interoperability
Previous: Copy-on-write vs merge-on-read
Primary sources: Apache Hudi concepts · Hudi table types · Hudi indexing