laskoviymishka commented on code in PR #2664: URL: https://github.com/apache/iceberg-go/pull/2664#discussion_r4723940028
########## website/src/releases.md: ########## @@ -44,7 +44,8 @@ Per-release notes (highlights, breaking changes, contributors) are published on - **`AddDataFiles` and `AddDataFilesByPath` no longer add a file twice on retry.** When a commit retry finds that a concurrent commit already added one of the same paths, the commit now fails with `table.ErrDuplicateDataFiles`, which also matches `table.ErrTransactionUnusable`. Previously, the retry added the file a second time and scans returned its rows twice. With `WithoutDuplicateCheck` or `ignoreDuplicates=true`, the retry still adds the file again, as before. - **gocloud types are no longer exposed by `blobfs` and `gcs`.** `blobfs.New` now returns the `blobfs.FileIO` interface, which lists the iceberg-go io interfaces and `io.Closer`, instead of a struct that embeds `*blob.Bucket`. `FileIO.NewWriter`, `blobfs.Writer` and `gcs.ParseGCSConfig` are removed; use `Create`, or configure GCS through properties. To migrate, replace `*blobfs.FileIO` with `blobfs.FileIO` in fields, signatures and `var _ X = (*blobfs.FileIO)(nil)` assertions, and assert `Sys()` results to `blobfs.FileIO` instead of `*blobfs.FileIO`. -- **Catalog and view FileIO may use isolated registries.** Glue, Hadoop, Hive and SQL accept `WithIORegistry`, as REST already does. `hadoop.NewCatalog`, `sql.NewCatalog`, `view.CreateView`, `view.CreateViewWithIOProperties`, `view.CreateViewFromVersion` and `view.WriteMetadata` now take a trailing variadic option. Existing calls still compile. Function values assigned to a type with the old signature need a wrapper that calls the function without options. The default remains the global registry, including for `catalog.Load`. +- **Catalog and view FileIO may use isolated registries.** Glue, Hadoop, Hive and SQL accept `WithIORegistry`, as REST already does. `hadoop.NewCatalog`, `sql.NewCatalog`, `view.CreateView`, `view.CreateViewWithIOProperties`, `view.CreateViewFromVersion` and `view.WriteMetadata` now take a trailing variadic option. Existing calls still compile. Function values assigned to a type with the old signature need a wrapper that calls the function without options. The default remains the global registry. +- **Catalog loaders accept a scoped FileIO registry.** `catalog.Load` and `(*catalog.Registry).Load` now take a trailing `...LoadOption` and accept `catalog.WithIORegistry`. Existing calls still compile. Function values and interfaces with the old signature need a wrapper that calls the loader without options. Review Comment: Could this bullet also cover custom factories? A `Registrar` that doesn't implement `IORegistryRegistrar` still works without the option, but gets `ErrNotImplemented` once a caller passes a non-nil registry. [configuration.md](https://github.com/apache/iceberg-go/blob/499359fc211e62fec264574b0ccc1b2302737eda/website/src/configuration.md#L564-L566) says so; the release notes are what factory authors read on upgrade. ```suggestion - **Catalog loaders accept a scoped FileIO registry.** `catalog.Load` and `(*catalog.Registry).Load` now take a trailing `...LoadOption` and accept `catalog.WithIORegistry`. Existing calls still compile. Function values and interfaces with the old signature need a wrapper that calls the loader without options. Custom factories that implement only `catalog.Registrar` keep working; with a non-nil `catalog.WithIORegistry`, `Load` returns an error wrapping `iceberg.ErrNotImplemented` unless the factory implements `catalog.IORegistryRegistrar`. ``` -- 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]
