DataEng Hub
Delta Lakeintermediate18 min

Delta Lake MERGE deep dive: stop rewriting your table

See exactly which files a MERGE rewrites, then watch partition pruning cut a 300 GB rewrite down to 4 GB.

Video coming soon

Summary

The companion video to the MERGE article: we run the naive merge, read the Delta transaction log to see the rewrite, then apply target pruning, source dedupe and compaction step by step — measuring the file counts after each fix.

What you'll learn

  • Reading DESCRIBE HISTORY and the transaction log to see what MERGE really did
  • Writing pruning predicates that the optimizer can actually use
  • When deletion vectors change the game

Go deeper

Keep going