Apache Iceberg Go 0.8.0 Release
The Apache Iceberg community is pleased to announce version 0.8.0 of iceberg-go.
This release covers approximately two months of development since the 0.7.0 release in October 2026 and is the result of merging over 460 PRs from 45 contributors, including 24 first-time contributors. See the full changelog for the complete list of changes.
iceberg-go is a native Go implementation of the Apache Iceberg table format, providing libraries for reading, writing, and managing Iceberg tables in Go applications.
Release Highlights🔗
Row-Level Changes and Overwrites🔗
- Incremental changelog reads: Changelog scans now plan delete-file changes, return the changed rows as Arrow batches, include rows removed by delete files, and can drop unchanged rows and compute update images
- Equality deletes to deletion vectors:
ConvertEqualityDeletesToDeletionVectorsrewrites the equality deletes of a V3 table into deletion vectors - Dynamic partition overwrite:
DynamicPartitionOverwritereplaces only the partitions that receive new rows
Table Maintenance🔗
- Sort compaction:
WithCompactionSortOrdersorts the rows of each compaction group, and is also available asiceberg compact run --sort - Spatial clustering:
WithCompactionGeometryHilbertOrderorders rows along a Hilbert curve over a geometry or geography column - Delete files:
RewritePositionDeleteFilescompacts V2 position delete files, andRemoveDanglingDeleteFilesdrops delete files that no longer apply to any data file - Files written by other engines:
StageRewrittenDataFilesByPathswaps in Parquet files that another engine rewrote, for unpartitioned V1 and V2 tables, andAddDataFilesByPathcan import bucket-partitioned files when the caller supplies their partition values - Table changes:
Transaction.NewReplaceSortOrderbuilds a new sort order, andTransaction.SetLocationchanges the table location within the same bucket
Concurrent Commits🔗
Most commits that lose a race to another writer are now retried by default, and retries check more of what the other writer changed:
- Retries by default:
commit.retry.num-retriesnow defaults to 4, matching Java and PyIceberg - Replay: Retries replay staged updates in order and renew snapshot timestamps, and snapshot expiration is replanned on retry
- Conflict checks: File replacements reject concurrent deletes, copy-on-write commits that would drop concurrent deletes are rejected, and
RowDeltarejects duplicate data file paths - Clearer errors:
table.ErrCommitRejectedseparates commits the catalog rejected from commits in an unknown state, and failed requirements and stale snapshot values now count as conflicts in catalogs that check them on the client
Branches and Snapshots🔗
- Cherry-pick:
Transaction.CherryPickSnapshotapplies an append snapshot to a branch; on V3 tables, the snapshot must directly follow the branch head - Branch promotion:
FastForwardBranch,ReplaceBranch, andReplaceBranchFromRef, plus theiceberg branch fast-forwardandiceberg branch replacecommands - Rename and rollback:
RenameBranchandRollbackToTime - Inspection:
Table.DiffSnapshotFilescompares the live files of two snapshots, andTable.ValidateSnapshotaudits a snapshot's manifests
REST Catalog🔗
- Authentication:
rest.auth.typeselects the authentication method, including Google credentials, with basic and SigV4 support and custom OAuth2 token sources - Freshness-aware loading:
LoadTablesendsIf-None-Matchand reuses its cached response when the table has not changed - Idempotency: Mutations carry an
Idempotency-Keyheader when the server advertises support - Storage access:
RefreshTableCredentialsrefreshes the vended credentials of a table, and a REST service can sign S3 requests - Scan planning: Scans follow the
scan-planning-modethat the catalog sets for a table, andiceberg filescan list files from a server-side plan - Labels: Catalog labels are exposed on loaded tables and views
Other Catalogs and IO🔗
- DynamoDB: A new DynamoDB catalog shares its table layout with Java's
DynamoDbCatalog - Glue: Tables can be created in databases federated to Amazon S3 Tables
- Views: The SQL catalog can update and rename views, the Hive catalog can update them, and
catalog.RollbackViewreturns a view to an earlier version - FileIO registries: The REST and the Glue, Hadoop, Hive, and SQL catalogs accept an isolated FileIO registry
- Azure: Static
adls.tokencredentials
Statistics🔗
- Distinct values:
Table.ComputeNDVsbuilds a Theta sketch per top-level primitive column, using sketches that Iceberg Java can read - Partition statistics:
ComputePartitionStatisticswrites and registers partition statistics for V1 and for V2 and V3 tables - Puffin: Statistics files can be registered in a transaction, and compressed blobs can be read and written
- Metrics: NaN counts for float and double columns and skipped file counts in
ScanReport
File Formats🔗
- Avro: Avro data files can be read in scans
- Parquet writes: Per-column compression and statistics settings, adaptive Bloom filters, and a separate target size and Parquet settings for delete files
- Parquet reads: Configurable page size limits
Encryption🔗
These are building blocks for table encryption. They are not yet used when reading or writing tables:
- Envelope encryption:
StandardEncryptionManagerreads and writes the same AES GCM Stream format as Java, Rust, and PyIceberg - Key management: An AWS KMS client and isolated KMS registries
Performance🔗
Nearly 100 performance PRs landed in this release. Some of the highlights:
- Scan planning: Manifest content can be cached across scans with
io.manifest.cache-enabled, scan tasks are finalized in parallel, andINfilters skip files using the smallest and largest listed value - Deletes: Equality deletes on a single dictionary column are matched once per dictionary entry, with fast paths for single-column
int32,int64, and string or binary keys, and deletion vector masks are built only for the batches they affect - Metadata: Snapshots stay unparsed in metadata builders until they are needed
- Maintenance: Orphan cleanup uses bounded buffers, and large bin-pack plans are indexed
Arrow Go v18.9 and Go 1.26🔗
iceberg-go now depends on Apache Arrow Go v18.9.0, up from v18.8.0 in 0.7.0 (#2632), so applications importing both modules will resolve arrow-go to at least v18.9.0. Go 1.26.3 or later is now required (#2077, #2123); 0.7.0 required Go 1.25.9.
Bug Fixes🔗
Nearly 150 bug fixes landed in this release. Notable fixes include:
- Keep rows where the filter is NULL in copy-on-write deletes
- Apply existing deletes when a copy-on-write delete rewrites a data file
- Keep V2 position deletes when a V3 delete writes a file's first deletion vector
- Remove a replaced data file's deletion vector on every replace path
- Write position deletes with the data file's partition spec
- Match equality deletes on dictionary columns
- Normalize equality delete keys after type promotion
- Preserve empty string partition bounds
- Keep manifests with incomplete partition bounds during pruning
- Keep NaN rows when a filter's NOT is pushed down
- Rewrite complete source files during compaction
- Load the full snapshot history before expiring snapshots
- Reject stale orphan cleanup plans
- Read deletion vectors that are stored outside a Puffin container
- Write statistics blob metadata that Iceberg Java can read
- Refuse cross-origin redirects, which could leak REST credentials
- Take the SQLite write lock before reading in SQL catalog write transactions
Breaking Changes🔗
Many of these changes clean up the public API ahead of a 1.0 release. The compatibility notes describe how to migrate; that page also lists changes merged after 0.8.0. The main breaking changes are:
- Commit retries (#2462): conflicting commits are retried up to four times. Set
commit.retry.num-retriesto0to keep failing on the first conflict. - Contexts (#2067, #2290, #2336, #2357, #2448, #2449, #2450, #2611, #2617): FileIO methods, manifest and deletion vector reads, and the Hadoop, SQL, and Hive catalog constructors now take a
context.Context. Custom FileIO implementations must be updated. - Catalog interface (#2292, #2305, #2349):
catalog.Catalognow requiresClose,PurgeTable, andName. Optional features, such as views, have their own interfaces, whichcatalog.Asfinds. - Package moves (#2086, #2631, #2649): orphan cleanup moved to
table/maintenance, metadata tables moved totable/inspect, andtable/substraitis now internal. - SigV4 backend (#2060):
catalog/restno longer links the AWS SDK. Importcatalog/rest/sigv4to use SigV4 signing. - Data file methods (#2306, #2308, #2309):
AddFilesis nowAddDataFilesByPath.ReplaceDataFilestakesDataFilevalues, and the path-based version isReplaceDataFilesByPath.ReplaceFilesWithDeleteFileswas removed. - Other renames and removals (#2178, #2179, #2266, #2310, #2313, #2314, #2315, #2317, #2322, #2331, #2635, #2648): deprecated names and
ManifestFile.FetchEntrieswere removed; exported names follow Go initialisms; manifest builders and sequence numbers have explicit names;Metadata.Versionis nowFormatVersion;SnapshotAsOfalways includes the given timestamp;NewTransactionOnBranch,FixedTypeOf, andDecimalTypeOfalso return an error; andblobfs.Newreturns an interface. - Filters (#2356, #2369, #2432):
NotInno longer matches NULL rows, and predicates reject NaN literals. UseIsNaNandNotNaNinstead. - Metadata validation (#2481, #2571, #2585): loading now fails for metadata with invalid identifier fields, incomplete history logs, or duplicate field IDs.
- Object storage layout (#2368, #2499): new partitioned files in object storage tables go under
data/<hash>/<partition>/by default. Ifwrite.data.pathis outside the table location, new paths in these tables also include the last two parts of the table location, usually the namespace and table name. Existing files do not move. - Delete file size (#2528): equality delete and V2 position delete files have their own 64 MiB target, set by
write.delete.target-file-size-bytes. - SQL catalog namespaces (#2390):
ListNamespacesreturns only direct children, and a namespace with children cannot be dropped. - Snapshot and commit metrics (#2352, #2666): snapshot summaries count deletion vectors separately from position delete files, and the OpenTelemetry commit totals are now gauges.
- KMS factories (#2296):
encryption.KMSFactoryfunctions now take a context.
Known Issues🔗
The release vote listed these issues, which are in 0.8.0 and will be fixed in a later release:
- Orphan file cleanup can delete live files when the table was loaded with
snapshot-loading-mode=refs. Do not run it on such tables. Fixed onmain. - Partial Parquet statistics on imported files can make scans skip matching rows, and copy-on-write deletes can remove rows outside the filter. Fixed on
main. - Identity partition columns that are not stored in the data files, such as Hive-style imports, are read as null, or fail the scan if the column is required. Copy-on-write deletes and compaction that rewrite such files store the nulls. A fix is in review.
- Concurrent
AddDataFilesorAddDataFilesByPathcalls for the same file can add it twice when a commit is retried. Fixed onmain.
New Contributors🔗
Welcome to all 24 first-time contributors: @eneskeles, @sevbanbayrak, @CaptainAni187, @itsbilal, @SLoeuillet, @1fanwang, @richiebachala, @wroever, @Goodnight77, @ilidemi, @nirajan1111, @saurabhojha, @Anurag-S1ngh, @Dem1241, @akritishakya, @Shruthirdy, @AnirudhSriram, @ShivamSharma43, @slfan1989, @AynSiddiqui, @slachiewicz, @rahulsmahadev, @nisan1101, @EugeneYushin
Getting Involved🔗
The iceberg-go project welcomes contributions. We use GitHub issues for tracking work and the Apache Iceberg Community Slack for discussions.
The easiest way to get started is to:
- Try
iceberg-gowith your workloads and report any issues you encounter - Review the contributor guide
- Look for good first issues
For more information, visit the iceberg-go repository.