ViktorBystrov72 commented on code in PR #2664:
URL: https://github.com/apache/iceberg-go/pull/2664#discussion_r4726512214


##########
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:
   The upgrade note now covers custom registrars. They continue to work without 
a scoped registry, and loading with a non-nil registry returns an error 
wrapping `iceberg.ErrNotImplemented` unless they implement 
`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]

Reply via email to