Hi everyone,

Ahead of the iceberg-go v0.8.0 release candidate, I propose a short list of
issues and PRs to resolve before the RC is cut. Each of them is an absolute
P0: it can return wrong results, bring back deleted rows, or leave a table
that can no longer be read. Each issue has a reproduction, and the first
five were re-checked against iceberg-go main (7cf76392).

Issues to fix before the RC:

1. #2604: A merge-on-read Delete on a table upgraded from v2 to v3 brings
back rows deleted before the upgrade. The new deletion vector does not
include the older position deletes, and readers skip position deletes once
a DV exists.
https://github.com/apache/iceberg-go/issues/2604

2. #2605: After an identity partition source column is promoted (int to
long, float to double), a v2 merge-on-read Delete commits, and from then on
Go scans that read that partition fail. 0.7.0 rejected the same delete
instead.
https://github.com/apache/iceberg-go/issues/2605

3. #2606: After a partition spec change, a v2 merge-on-read Delete of a row
in a file written under the old spec writes its position delete file under
the new spec. Go scans that read the file then fail, and iceberg-java 1.12
rejects the table as corrupted.
https://github.com/apache/iceberg-go/issues/2606

4. #2609: UpdateSchema does not require last-column-id to be unchanged, so
a stale AddColumn can reuse the field ID of a column another writer
dropped, and the new column then reads that column's old values. It becomes
reachable with the new default of 4 commit retries (#2462). If the
fix can't land in time, keeping the previous default of 0 retries would
avoid it.
https://github.com/apache/iceberg-go/issues/2609

5. #2610: After a float identity partition column is promoted to double,
equality deletes written after the promotion are silently ignored for files
written before it (v2 and v3).
https://github.com/apache/iceberg-go/issues/2610

6. #2596: Partial Parquet row-group statistics on imported files can make
scans skip matching rows and make copy-on-write deletes remove rows outside
the filter. Fix: #2597.
https://github.com/apache/iceberg-go/issues/2596
7. #2485: Identity partition columns that are not stored in the data files
(for example, Hive-style imports) are read as null, and copy-on-write
rewrites can move rows to the null partition. Fix: #2487.
https://github.com/apache/iceberg-go/issues/2485

8. #2537: Committing the same RowDelta builder twice duplicates rows. #2602
may cover this, but that is not verified yet.
https://github.com/apache/iceberg-go/issues/2537

PRs to merge before the RC:

1. #2597: omit incomplete Parquet statistics (fixes #2596)
https://github.com/apache/iceberg-go/pull/2597

2. #2487: fill identity partition columns missing from data files (fixes
#2485)
https://github.com/apache/iceberg-go/pull/2487

3. #2602: reject duplicate data paths in RowDelta, including after a retry
https://github.com/apache/iceberg-go/pull/2602

4. #2599: reject orphan cleanup and purge when snapshot history was loaded
with "snapshot-loading-mode=refs"
https://github.com/apache/iceberg-go/pull/2599

5. #2601: reject snapshot expiration with refs-only snapshot history
https://github.com/apache/iceberg-go/pull/2601

#2605 and #2610 share a root cause: partition values from manifests written
before a type promotion keep the old type and are compared without
widening. Reading older manifests with the current partition type should
fix both.

#2600 widens values for deletion vectors and fixes the int-to-long case of
#2605, but not the float case or #2610, so a focused fix for these two
seems better than holding the release on #2600.

I am open to discussing the prioritization or deprioritization of any of
the above, and would love to hear your thoughts. I'm also happy to work on
fixes and help with reviews.

Thanks,
Badal Prasad Singh

Reply via email to