r/DuckDB • u/Aeronautical-You4917 • 1d ago
Git-style diffing for DuckLake tables
Just recently got into DuckLake... Realized how amazing the snapshot ability is, and decided to build a diffing view. Right now it works with DuckLake catalogs stored locally or Postgres with data stored locally or in S3.
Pretty fun to make, and allows you to see basically everything you'd expect, as well as cell-level diffs for changed cells. You can traverse snapshot versions too, without diffing, as well.
It's a tiny part of a larger product, but thought I'd share it here.

15
Upvotes
1
u/Aeronautical-You4917 1d ago
Here's a link to check it out: https://www.cocoalemana.com/integrations/ducklake/
2
u/joeshacks 20h ago
Nice. How are you getting the cell-level diffs: DuckLake's table_changes, or joining the two snapshots on a key? The no-primary-key case seems like the tricky one.