zeroshade commented on code in PR #2693: URL: https://github.com/apache/iceberg-go/pull/2693#discussion_r4722238072
########## website/src/releases.md: ########## @@ -161,6 +161,7 @@ Per-release notes (highlights, breaking changes, contributors) are published on - **Float comparisons against literals beyond the float32 range follow IEEE 754.** On a float32 column, `x < 1e100` no longer returns NaN, `+Inf` or NULL rows, and `NOT(x > 1e100)` no longer returns NULL rows. An infinite literal now binds to a float32 infinity, so `x = +Inf` matches `+Inf` rows. Java still folds these comparisons to always true or false, see [apache/iceberg#18700](https://github.com/apache/iceberg/issues/18700). - **Orphan cleanup refreshes metadata before deletion.** Non-dry-run `DeleteOrphanFiles` requires a catalog-backed table and refreshes it before planning and again before deleting files. `ExecuteOrphanCleanup` also refreshes before deleting from a non-empty plan. If a saved plan is stale, refresh or reload the table before planning again. Dry runs still work without a catalog. - **Position deletes use the data file's partition spec.** After partition spec evolution, `Delete` on a merge-on-read table wrote v2 position delete files with the current spec instead of the target data file's spec. Scans and re-running `Delete` on such a table can fail with `invalid metadata: position delete file ... uses partition spec N, but data file ... uses partition spec M`; some deletes are instead silently missed, so the rows stay visible, and re-running those deletes applies them. New deletes carry the data file's spec. For the mismatch error, remove the delete files whose spec ID differs from their data file's with `Transaction.NewRewrite` (`RewriteFiles.DeleteFile`), then re-run those deletes; until then the rows they deleted are visible again. +- **Third-party types in the exported API follow iceberg-go's major version.** At v1, the exported API still uses arrow-go v18 (the `table` API and the decimal and variant literals), `aws.Config`, `oauth2.TokenSource`, the OpenTelemetry `metric.Meter`, and the gohive Thrift structs in `hive.HiveClient`. If any of them has to move to a new major version, iceberg-go moves to a new major version too. Review Comment: Two small accuracy points: - **Arrow coverage:** arrow-go types also appear in `table/inspect` (`Entries`, `Files`, `History`, `Snapshots`, …) and in the root package's variant helpers (`VariantPath`, `ExtractValue`, `CastVariantLiteral`, `BoundExtract`), not only in literals. - **v0 dependencies:** `golang.org/x/oauth2` is v0.38, so it can make breaking changes without ever releasing "a new major version". Since we agreed on #2062 that v0 oauth2 in the API is fine, the sentence could say how that case is handled. ```suggestion - **Third-party types in the exported API follow iceberg-go's major version.** At v1, the exported API still uses arrow-go v18 (`table`, `table/inspect`, and the decimal and variant types), `aws.Config`, `oauth2.TokenSource`, the OpenTelemetry `metric.Meter`, and the gohive Thrift structs in `hive.HiveClient`. If any of them has to move to a new major version, iceberg-go moves to a new major version too. `golang.org/x/oauth2` is still pre-v1, and a breaking change there is treated the same way. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
