Cross-posted. This article’s canonical home is Data Lakehouse Hub.
iceberg-go 0.8.0, released Nov 27, 2026, raises the minimum Go version to 1.26, adds context arguments to IO operations, and removes APIs including WithMaxConcurrency and RewriteFiles.Apply. It also adds maintenance features: orphan cleanup under table/maintenance, conversion of equality deletes to deletion vectors, sort and Hilbert rewrites, and REST idempotency keys.
The release notes list roughly 300 merged pull requests. Nobody upgrading a production service reads 300 entries. What you need to know is which ones break your build, which ones change behavior without breaking the build, and which new features are worth adopting. This guide sorts the release into those three buckets and gives you an upgrade sequence that keeps surprises out of production.
A quick orientation for readers new to the project. iceberg-go is the Apache Iceberg project’s native Go implementation. It reads and writes Iceberg tables, talks to catalogs such as REST, AWS Glue, SQL, and Hive, and runs table maintenance, all without a Java Virtual Machine (JVM). Go services use it to write tables from ingestion code, inspect metadata, and run maintenance jobs as small binaries. The release vote opened on the Iceberg dev list on November 23, 2026, and the release landed on November 27.
Before You Start: The Go 1.26 Floor
The first change hits before your code compiles. iceberg-go 0.8.0 requires Go 1.26 or newer (PR #2077).
If your service builds with an older toolchain, updating the toolchain is step zero. That’s usually a bigger change than the library upgrade. It touches CI images, Docker base images, and any other dependencies that pin old Go versions. Do it as a separate change, ship it, and only then bump iceberg-go. Mixing a toolchain upgrade and a library upgrade into one deploy makes any failure harder to diagnose.
The module upgrade itself is one command:
go get github.com/apache/iceberg-go@v0.8.0
go mod tidy
go build ./...
go vet ./...
go get updates go.mod and go.sum to the new release. go mod tidy drops dependencies the new version no longer needs and adds ones it does. go build ./... surfaces compile errors from removed or renamed APIs. go vet ./... catches suspicious constructs the compiler accepts. Expect the build to fail on a first pass if you use any of the APIs listed in the next section. That’s the point of running it before anything else.
Breaking Changes That Fail the Build
These changes stop your code from compiling. They’re the easy kind of breaking change, because the compiler finds every call site for you. The table groups them by package, with the replacement where one exists.
| Area | What changed | What to do |
|---|---|---|
| Table writes | WithMaxConcurrency and RewriteFiles.Apply removed (#2177) | Remove the option, then use the consolidated replace-files API (#2309) |
| Table metadata | Metadata.Version renamed to FormatVersion (#2317) | Rename call sites |
| Manifests | ManifestFile.FetchEntries and DataFile.DistinctValueCounts removed (#2179) | Read entries through the current manifest reading APIs, drop distinct counts |
| Metadata tables | Moved to table/inspect (#2631) | Update imports |
| Substrait | table/substrait moved to table/internal/substrait (#2649) | Stop importing it directly |
| Catalog | TableNameFromIdent removed (#2281), Closer alias removed (#2332), PurgeableTable renamed PurgeableCatalog (#2305), Close now required (#2292) | Update names and implement Close on custom catalogs |
| Catalog constructors | SQL and Hive constructors now take a context (#2617) | Pass a context.Context |
| IO | Context added to Open, Remove, Stat, ReadFile, rename, directory, write, and walk operations (#2067, #2448, #2449, #2450, #2611, #2336) | Thread ctx through every IO call |
| Literals | ToHumanStr replaced by ToHumanString (#2266, #2321) | Rename |
| Puffin | Writer AddProperties renamed SetProperties (#2273) | Rename |
| Views | Representation.Sql renamed SQL (#2283), NewSQLRepresentation removed (#2318) | Rename and construct representations directly |
| Expressions | VisitBoundPredicateRef removed (#2623) | Use the remaining visitor APIs |
Two of these deserve more than a rename.
The IO context change. Every IO operation now takes a context. That’s the right design. It lets you cancel slow object storage calls and carry deadlines from an HTTP request down to storage. It also means any helper function that wraps iceberg-go IO now needs a context parameter too, and the change ripples up through your call stack. Do it properly. Pass the caller’s context. Don’t paper over it with context.Background() deep inside helpers, because that throws away the cancellation you just gained.
Close is now required on catalogs. If you implemented a custom catalog, it must now implement Close. If you only use the built-in catalogs, make sure you call Close when you’re done with one, usually with a defer. The REST catalog holds HTTP clients and token refresh state, and leaking them in long-running services shows up as slow resource growth.
Breaking Changes That Compile Fine
These are the dangerous ones. Your build passes and your service behaves differently.
Commit conflicts now retry four times by default (#2462). When two writers commit to the same table, Iceberg’s optimistic concurrency rejects one of them. Earlier releases surfaced that conflict to your code. Now the library retries up to four times. For most ingestion services that’s an improvement, because transient conflicts resolve without custom retry loops. If you already wrap commits in your own retry logic, you now retry on top of retries. Four library retries inside three of yours is twelve attempts, and the latency of a contended commit grows to match. Review your wrappers and remove the duplicate layer or reduce it.
Binary and fixed defaults are stored as hex strings (#2372). Default values for binary and fixed columns now serialize as hex, matching the specification. If any tool reads those defaults from metadata JSON directly, check that it expects hex.
NaN literals are rejected when binding predicates (#2432). A filter like x = NaN now fails to bind instead of silently matching nothing. That’s more correct. It also means a query builder that passes user input straight through can start returning errors. Validate inputs or use IsNaN predicates instead of equality.
Partitioned writes honor object-storage path layouts (#2368). If the table uses object-storage-friendly file locations, partitioned writes now follow that layout. File paths for new data change shape. Anything that parses file paths to infer partitions is the risk here, and the answer is to read partitions from metadata, never from paths.
SnapshotAsOf is inclusive (#2322). Time travel to a timestamp now includes a snapshot committed exactly at that timestamp. Boundary queries that relied on the old behavior return a different snapshot. This rarely matters, and when it does it produces very confusing bugs, so search for SnapshotAsOf and check the boundary assumptions.
OAuth token refresh is context-aware and single-flighted (#2265). Concurrent requests that need a new token now share one refresh. That fixes thundering-herd refreshes against your identity provider. It changes timing, and tests that mocked token endpoints with call counts need updating.
SigV4 support in the REST catalog is optional (#2060). If you sign REST catalog requests with AWS Signature Version 4, confirm your configuration still selects it after the upgrade. The new rest.auth.type setting, covered below, is the explicit way to choose.
The Bug Fixes That Change Results
Several fixes change what your code computes. They’re fixes, so the new behavior is the correct one. Still, a correct change in results surprises dashboards and tests.
- Concurrent deletion vector conflicts surface as
ErrConflictingDeleteFiles(#2598). If two writers attach deletion vectors to the same data file at once, the loser now gets a specific error. Handle it explicitly in delete-heavy pipelines. - Copy-on-write commits that drop concurrent deletes are rejected (#2099). Earlier, a copy-on-write rewrite racing a delete sometimes committed and lost the delete. Now it fails. Expect more conflicts in mixed workloads, and treat each one as a bug that was silently happening before.
- Equality deletes match dictionary-encoded columns (#2427). Rows that equality deletes should have removed now disappear. Row counts drop on affected tables. That’s correct.
- Rows with NULL filter columns are kept in copy-on-write deletes (#2111). A delete with a predicate no longer drops rows where the predicate column is NULL. Row counts rise on affected tables. Also correct.
- Float ordering matches Java (#2514), NaN ordering fixed (#2418), decimal scale comparison fixed (#2504). Statistics-based pruning and comparisons now agree with the Java implementation. Pruning results change on edge cases.
- Credentials and default headers don’t leak on cross-origin redirects (#2098). A security fix in the REST client. Upgrade for this one alone if your catalog sits behind redirects.
If you run row-count reconciliation between a Go writer and a Java reader, re-baseline after the upgrade. Differences that appear are worth reading one by one, and most of them will turn out to be the old behavior being wrong.
New Maintenance APIs
The most useful additions in 0.8.0 are for table maintenance. Go services can now run most routine maintenance without a Spark cluster.
Orphan file cleanup moved to table/maintenance (#2086). Orphan files are data or metadata files in the table’s location that no snapshot references, usually left by failed writes. Cleanup now lives in its own package. It honors the table’s gc.enabled property (#2557), so tables that disable garbage collection are protected. It also rejects stale cleanup plans (#2608). If the table changed between planning and execution, the plan is refused instead of deleting files a newer snapshot needs. That last fix matters a great deal. Orphan cleanup that races a commit is one of the classic ways to corrupt a table.
Dangling delete file removal (#2408). Delete files whose target data files were rewritten away still sit in metadata and get read during planning. Removing them cuts planning work.
Partition statistics (#2396, #2539). iceberg-go now computes and writes partition statistics files, which engines use for planning and cost estimates.
Rewrites. A sort-order compaction strategy (#2345), Hilbert-curve rewrites (#2517), data-preserving rewrites by file path (#2383), rewrites of v2 position deletes (#2409), and a target file size for deletes (#2528). Per-column Parquet compression (#2524) and statistics settings (#2526) let rewrites produce files tuned per column.
Deletion vectors. You can convert equality deletes into deletion vectors (#2434). Merge-on-read reads now use only deletion vectors where present (#2196). Equality deletes are cheap to write and expensive to read, because every read must join them against data. Deletion vectors are bitmaps keyed to positions in one data file, so reads apply them directly. Converting equality deletes on a schedule moves the cost from every read to one background job.
A Go maintenance binary that runs these on a schedule is now a realistic alternative to a Spark job for small and medium tables. For very large tables, distributed engines still win on raw throughput, since a single Go process rewrites only as fast as one machine allows.
REST Client Changes
The REST catalog client gained several features that matter in production.
Idempotency-Key on mutations (#2492). The client now sends an idempotency key on catalog mutations. If a commit request times out and the client retries, a catalog that supports idempotency keys recognizes the retry and doesn’t apply the change twice. This closes a real gap. Without it, a timed-out create or commit followed by a retry leaves you unsure whether the first attempt landed.
Freshness-aware table loading with If-None-Match (#2188). When the client reloads table metadata it already has, it sends the cached version’s ETag. If nothing changed, the catalog answers 304 Not Modified and skips sending the metadata again. For services that reload metadata often, that cuts bandwidth and catalog load.
Explicit auth selection with rest.auth.type (#2502, #2538, #2547). You choose the authentication mechanism by name, with Google auth, basic auth, and SigV4 among the options. Explicit beats implicit here. Check the project README for the exact accepted values before you set this.
Other REST changes. RefreshTableCredentials (#2075) refreshes vended storage credentials for a table. The client enforces the server’s scan-planning mode directive (#2162). Catalog labels are exposed (#2068), and the User-Agent header follows the REST specification’s format (#2516).
Here’s a REST catalog configuration with the new options spelled out, as a properties map:
props := iceberg.Properties{
"type": "rest",
"uri": "https://catalog.example.com/api/catalog",
"warehouse": "analytics",
"rest.auth.type": "oauth2", // check README for accepted values
"credential": clientID + ":" + clientSecret,
}
cat, err := catalog.Load(ctx, "prod", props)
if err != nil {
return fmt.Errorf("load catalog: %w", err)
}
defer cat.Close()
type and uri select the REST catalog and its endpoint. warehouse names the catalog warehouse, which many REST servers require. rest.auth.type makes the auth choice explicit instead of inferred from which credential keys happen to be present. credential carries the client ID and secret for OAuth 2.0 client credentials. The defer cat.Close() matters now that Close is part of the contract. The comment is there for a reason. Confirm the auth type string against the release’s documentation rather than copying it from any blog post, including this one.
Threading Context Through Your Own Code
The IO context change is the one that touches the most lines in a typical service, so it’s worth showing the pattern. Here’s a helper written against the old IO signatures and the same helper rewritten for 0.8.0. The iceberg-go calls are deliberately minimal. Check exact signatures in the package documentation for your release.
Before:
// Reads a small sidecar file stored next to table data.
func readSidecar(fsys icebergio.IO, location string) ([]byte, error) {
f, err := fsys.Open(location)
if err != nil {
return nil, err
}
defer f.Close()
return io.ReadAll(f)
}
After:
// Same helper, now cancellable and deadline-aware.
func readSidecar(ctx context.Context, fsys icebergio.IO, location string) ([]byte, error) {
f, err := fsys.Open(ctx, location)
if err != nil {
return nil, fmt.Errorf("open %s: %w", location, err)
}
defer f.Close()
return io.ReadAll(f)
}
The new first parameter is the whole change. The helper takes a context from its caller and passes it into Open. If the caller is an HTTP handler with a five-second deadline, a slow object storage read now stops at five seconds instead of holding a goroutine indefinitely. The error wrapping is optional but useful. Once contexts flow through, you start seeing context deadline exceeded errors, and the location in the message tells you which file was slow.
The rule for the whole upgrade: every function that calls an iceberg-go IO method gets a ctx parameter, all the way up to the entry point that owns the request or job. It’s tedious. It’s also the work that makes your service behave well under storage slowdowns.
Testing the Upgrade Against a Real Catalog
Unit tests with mocked catalogs won’t catch changes in retry behavior, idempotency headers, or conditional loading. Run at least one integration test against a real REST catalog. The Iceberg project publishes a REST catalog test fixture image that works well in CI:
docker run -d --name iceberg-rest -p 8181:8181 apache/iceberg-rest-fixture
export ICEBERG_REST_URI=http://localhost:8181
go test ./... -run Integration -count=1
docker rm -f iceberg-rest
The container runs a reference REST catalog on port 8181 with local storage. The test run uses an environment variable to point your integration tests at it. -count=1 disables Go’s test cache so the tests really run against the fresh container. The last line cleans up.
Three tests are worth writing for this upgrade specifically. First, create a table, append, and read back, which proves the basic path still works with the new APIs. Second, run two goroutines that append to the same table at once and assert both appends land, which exercises the new default retries. Third, load the same table twice and confirm the second load succeeds, which exercises conditional loading against a server whether or not it returns 304. The fixture is a reference implementation, so production catalogs differ in which optional features they support. Repeat the tests against your real catalog in staging.
Changelog Scans for Incremental Go Pipelines
Changelog scans deserve a closer look, because they change what a Go service can do without a streaming engine.
A changelog scan reads the row-level changes to a table between two snapshots. Inserts appear as inserts. Deletes and updates appear as deletes, or as delete and insert pairs, depending on how the change was written. With PRs #2169 through #2171 and #2536, iceberg-go can now produce these change sets.
That makes a simple incremental pattern possible. A Go job wakes up on a schedule. It reads the snapshot ID it processed last from a small state table or file. It runs a changelog scan from that snapshot to the table’s current snapshot. It processes only those changes, such as updating a search index, syncing a cache, or computing an aggregate. Then it records the new snapshot ID and exits.
Two details keep the pattern safe. First, snapshot expiration must keep the last processed snapshot around until the job runs again. If maintenance expires it, the scan has no starting point. Second, the job must record the new snapshot ID only after it finishes processing, so a crash causes reprocessing instead of skipped changes. Make the downstream writes idempotent, and reprocessing becomes harmless.
This is the kind of workload where a native implementation shines. A small Go binary with a few megabytes of memory replaces a JVM job for low and medium change volumes, and it deploys like any other Go service.
Other Additions Worth Knowing
- DynamoDB catalog (#2535) for teams that keep catalog state in DynamoDB.
- Glue support for S3 Tables federated catalogs (#2001).
- AWS KMS client (#2531) for encryption key access.
- Avro data file reads (#2398), so Go readers handle tables with Avro data files.
- Parquet bloom filters (#2525) for point-lookup pruning.
- Puffin compressed blob reads and writes (#2400, #2401).
- Changelog scans for deletes and updates (#2169, #2170, #2171, #2536), which let Go services read row-level changes between snapshots for incremental processing.
- Snapshot cherry-pick (#2382), branch promotion (#2384), and dynamic partition overwrite (#2381), which bring Go closer to the Java API’s write-audit-publish patterns.
- Isolated FileIO registries (#2612), which stop one catalog’s IO configuration from leaking into another in the same process.
Changelog scans are the sleeper feature. They let a Go service process only what changed in a table since the last run. That’s the foundation for incremental pipelines without a streaming engine.
An Upgrade Sequence That Keeps Production Calm
Here’s the order I recommend for a service that writes tables in production.
- Upgrade the toolchain to Go 1.26 and deploy that alone.
- Bump iceberg-go on a branch and fix compile errors. Thread contexts properly.
- Remove duplicate retry layers around commits, or reduce them to account for the library’s four default retries.
- Search for behavior-sensitive calls:
SnapshotAsOf, NaN filters, path parsing, binary or fixed defaults. - Run an integration test against a real REST catalog. The Iceberg project publishes a REST catalog test fixture image,
apache/iceberg-rest-fixture, that’s easy to run in CI. - Run a shadow write. Point a copy of the service at a staging table and compare row counts and file layouts with production for a day.
- Re-baseline reconciliation checks after reviewing any count differences against the bug fix list above.
- Roll out with a metric on commit retries and conflicts. The new retry default changes the shape of commit latency, and you want to see it.
Only after the upgrade is stable should you adopt the new maintenance APIs. Running orphan cleanup for the first time is a separate change with its own risk, and it deserves its own rollout.
Rolling Out Maintenance for the First Time
If you adopt the maintenance package, start conservatively.
- Orphan cleanup: Run in a dry-run or listing mode first if your tooling supports it, and review the list of files it plans to delete. Use a generous age threshold so files from in-flight writes are never candidates. Make sure
gc.enabledis set correctly on every table. - Equality-to-deletion-vector conversion: Start with one table that has heavy equality delete reads. Compare read latency before and after.
- Rewrites: Start with the sort-order strategy on one partition. Measure file counts and query times. Move to Hilbert curves only when queries filter on several columns at once, because Hilbert ordering helps multi-column range filters and costs more to compute.
- Dangling delete removal: Low risk and immediate planning benefit. Good first step.
Schedule maintenance away from peak write windows. Every maintenance commit competes with ingestion commits, and while the new retry default absorbs some contention, it doesn’t make contention free.
Failure Modes and Warning Signs
Retry amplification. Warning sign: commit latency p99 grows sharply after upgrade. Cause: application retries stacked on library retries. Fix: remove one layer.
Context misuse. Warning sign: requests that should time out hang on object storage. Cause: context.Background() inserted to satisfy new signatures. Fix: thread the caller’s context.
Catalog resource leaks. Warning sign: goroutine or connection counts grow over days. Cause: catalogs created per request without Close. Fix: create catalogs once, close them on shutdown.
New conflict errors in delete workloads. Warning sign: ErrConflictingDeleteFiles or rejected copy-on-write commits. Cause: real concurrency races that used to go unreported. Fix: serialize conflicting writers per table or retry at the job level with fresh planning.
Row count shifts. Warning sign: reconciliation alerts after upgrade. Cause: the equality delete and NULL-handling fixes. Fix: verify against the bug fix list, then re-baseline.
What Go Still Lacks Compared With Java
0.8.0 narrows the gap with the Java implementation considerably. Maintenance, deletion vectors, changelog scans, and REST features all moved forward. The Java implementation is still the reference, and it still ships features first. Distributed execution belongs to engines like Spark and Flink, not to any single-process library. Go doesn’t replace them for very large rewrites.
The right way to think about iceberg-go is as the tool for Go services that need to be first-class Iceberg citizens. Writers, inspectors, and small maintenance jobs. For that role, 0.8.0 is a strong release.
Conclusion
iceberg-go 0.8.0 is a big release with a clear shape. It cleans up APIs, threads contexts through IO, makes commits retry by default, fixes a set of correctness bugs that changed results, and adds the maintenance and REST features production services need. Upgrade the toolchain first, fix the compile errors properly, remove duplicate retries, check the behavior changes, and adopt maintenance as a separate step.
For the bigger picture of why native implementations matter, see Iceberg Is Escaping the JVM. For the Java side of a similar upgrade, see Upgrading to Apache Iceberg 1.12.0. For the concepts behind the new maintenance APIs, see automating table maintenance, deletion vectors, and the REST catalog API reference.
Sources: iceberg-go v0.8.0 release notes · RC0 vote thread, Nov 23, 2026
Keep Going
If this piece was useful, I have written a lot more on Apache Iceberg internals and operations. Apache Iceberg: The Definitive Guide (O’Reilly) covers the commit protocol, delete files, and maintenance procedures that this release builds on. You can find every book I have written, across lakehouse architecture, Apache Iceberg, Apache Polaris, and AI, at books.alexmerced.com.