Open table formats: how a pile of Parquet files on object storage becomes a transactional table.
The Lakehouse Problem — Hive found a table's files by listing directories, so it had no atomic commits, no isolation and no file-level statistics; Iceberg and Delta exist to fix exactly that. (12 min read)
Iceberg's Metadata Tree — Catalog pointer, metadata.json, manifest list, manifests, data files: every layer immutable, every write a new branch of files plus one pointer swap. (32 min read)
Delta Lake's Transaction Log — Delta tracks a table as a numbered, append-only log of JSON commits with periodic Parquet checkpoints: event sourcing where Iceberg uses a tree. (6 min read)
Concurrency Control — Both formats use optimistic concurrency; the hard engineering is getting an atomic compare-and-swap out of object storage and deciding which concurrent commits truly conflict. (8 min read)
Partitioning and Data Skipping — Iceberg keeps the partition transform in metadata (hidden partitioning that can evolve); Delta partitions like Hive and skips files with statistics and Z-ordering. (7 min read)
Compaction and Maintenance — Small files, delete files and old snapshots pile up with every write; compaction and snapshot expiry are jobs you schedule forever, not one-time setup. (20 min read)
Schema Evolution and Time Travel — Column IDs make rename, drop and add metadata-only changes, and time travel falls out of immutability: an old snapshot is just a different starting pointer. (5 min read)
Catalogs and Engine Interop — A catalog's one real job is the atomic pointer swap; engines agree on a table only when they commit through the same catalog. (25 min read)
Iceberg vs Delta vs Hudi: How to Choose — The same core trick with different metadata shapes, governance and target workloads, and how recent interop work is erasing the difference. (4 min read)
Appendix A: Warehouse vs. Open Stack — Iceberg replaces only a warehouse's storage; the optimizer, concurrency, governance and zero operations are still the vendor's, which changes why you would turn it on. (6 min read)
Synthesis and Self-Test — Five dependencies where one part pays for another, then questions that each need two or more parts to answer. (9 min read)
Why Go Can't Run Spark by Itself — Spark's planner and Iceberg's reader and writer live on the JVM; Spark Connect's gRPC protocol is what lets a Go program drive a real Spark server. (3 min read)
Stand Up the Stack — Postgres and a Hive Metastore own the table pointer, a Spark Connect server does the work, and a Go module with no JVM dependencies drives it all from your laptop. (18 min read)
Create the Table — Create one hidden-partitioned table carried through the whole lab, then look at what landed on disk and at the pointer row in the metastore database. (9 min read)
Write Data, Three Ways — Literal INSERTs, a Go struct slice and INSERT ... SELECT all end in the same Iceberg commit machinery; only the source of the rows differs. (7 min read)
Query It Back, and Prove Pruning Happened — Read rows back from Go and use EXPLAIN to count how many files Spark actually had to open for a filtered query. (2 min read)
Peek Under the Hood: The Metadata Tree, for Real — Walk the warehouse directory with Go and query Iceberg's metadata tables to see every layer of the metadata tree as a real file. (6 min read)
Timezones Across a Global Product — Store one UTC instant type and convert only at the API and rendering edges; what that means for timestamptz, partitioning, pruning and DST. (11 min read)
Snapshots and Time Travel — Pull a snapshot ID out of one query and feed it into the next to read the table as it was, the pattern behind audit and rollback tooling. (2 min read)
Schema Evolution: Prove the Field-ID Claim — Rename a column and read pre-rename Parquet files through the new name from Go, proving Iceberg tracks columns by field ID. (2 min read)
Upserts With MERGE INTO — Switch to merge-on-read, run an upsert and watch position-delete files appear, then what a reader must now do and why the file count grows. (9 min read)
Two Writers, One Table — Race two commits from two goroutines and watch the metastore lock, or the opt-in compare-and-swap, serialize them and force a retry. (6 min read)