Why Go Can't Run Spark by Itself

The main guide covered the theory — the metadata tree, optimistic concurrency, compaction. This page is the other half: a real table, created and mutated entirely from Go code, running on a Hive Metastore backed by Postgres, with every step immediately checked against the actual files on disk and the actual pointer row in the database. By the end you'll have run every mechanic from the main guide (see Iceberg's metadata tree, Concurrency control, Partitioning and data skipping, Compaction and maintenance, and Schema evolution and time travel) with your own hands, not just read about them.

PySpark gets away with feeling native because Python has had over a decade of increasingly elaborate bridges into the JVM (Py4J, and more recently Spark Connect itself). Go has never had that bridge — but it doesn't need one, because Spark Connect (GA since Spark 3.5) isn't Python-specific. It's a public protobuf/gRPC service, and the official apache/spark-connect-go client speaks it directly. Practically, this means your Go binary:

Runs Iceberg reads/writes?No — the server does
Needs a JVM locally?No
Ships Iceberg jars?No — server-side only
SendsSQL text / unresolved plans, over gRPC
The path from your Go code to a byte on disk
The path from your Go code to a byte on disk

Two paths leave the Spark server and they carry completely different things. Bytes — Parquet, Avro manifests, metadata.json — go straight to your local filesystem, which is why every find and cat in this lab works. The metastore hop carries one string per commit: the path of the current metadata.json. Keeping those two apart is the whole reason a catalog is a separate tier, and the Lab: stand up the stack part unpacks it properly.

This is the same shape as the Catalogs and engine interop part's engine-interop story, just with a client language substituted in: Trino, Flink, and now a Go binary are all just different front doors onto the same physical Iceberg table, none of them privileged over the others. With a real metastore in the picture that stops being a diagram — point a Trino cluster at thrift://localhost:9083 and it sees the tables your Go code created, immediately. Nothing about the table on disk knows or cares that a Go program wrote to it.