laskoviymishka commented on code in PR #2683:
URL: https://github.com/apache/iceberg-go/pull/2683#discussion_r4668012174


##########
website/src/releases.md:
##########
@@ -42,10 +42,14 @@ Per-release notes (highlights, breaking changes, 
contributors) are published on
 
 ### Unreleased compatibility notes
 
+- **The minimum Go version is now 1.26.3.** v0.7.0 required Go 1.25.9. See the 
[install guide](./install.md).
+- **OpenTelemetry commit totals are gauges.** Commit totals describe table 
state after each commit. Update dashboards and alerts to use the latest value 
for each attribute set. See [OpenTelemetry 
metrics](./metrics-reporting.md#opentelemetry) for the instrument names.
 - **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. The new options are optional. Callers upgrading from v0.7.0 
must also pass a context to the Hadoop and SQL constructors. Assignments to a 
function type with an older signature need a wrapper. The default remains the 
global registry, including for `catalog.Load`.

Review Comment:
   The context argument for `hadoop.NewCatalog` and `sql.NewCatalog` already 
has its own bullets further down 
([L110-L111](https://github.com/apache/iceberg-go/blob/2a3bb624a0dc56d56df2ee025bcc4cee76eddf1f/website/src/releases.md#L110-L111)),
 so this sentence could go:
   
   ```suggestion
   - **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. The new options are 
optional. Assignments to a function type with an older signature need a 
wrapper. The default remains the global registry, including for `catalog.Load`.
   ```



##########
website/src/releases.md:
##########
@@ -42,10 +42,14 @@ Per-release notes (highlights, breaking changes, 
contributors) are published on
 
 ### Unreleased compatibility notes
 
+- **The minimum Go version is now 1.26.3.** v0.7.0 required Go 1.25.9. See the 
[install guide](./install.md).

Review Comment:
   Could we bump the install guide while we're here? It still says "Go 1.26 or 
later" 
([install.md#L27](https://github.com/apache/iceberg-go/blob/2a3bb624a0dc56d56df2ee025bcc4cee76eddf1f/website/src/install.md#L27)),
 while `go.mod` has `go 1.26.3` 
([go.mod#L20](https://github.com/apache/iceberg-go/blob/2a3bb624a0dc56d56df2ee025bcc4cee76eddf1f/go.mod#L20)),
 so the linked page is less specific than this bullet.



##########
website/src/releases.md:
##########
@@ -42,10 +42,14 @@ Per-release notes (highlights, breaking changes, 
contributors) are published on
 
 ### Unreleased compatibility notes
 
+- **The minimum Go version is now 1.26.3.** v0.7.0 required Go 1.25.9. See the 
[install guide](./install.md).
+- **OpenTelemetry commit totals are gauges.** Commit totals describe table 
state after each commit. Update dashboards and alerts to use the latest value 
for each attribute set. See [OpenTelemetry 
metrics](./metrics-reporting.md#opentelemetry) for the instrument names.
 - **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. The new options are optional. Callers upgrading from v0.7.0 
must also pass a context to the Hadoop and SQL constructors. Assignments to a 
function type with an older signature need a wrapper. The default remains the 
global registry, including for `catalog.Load`.
+- **Deprecated `io/gocloud` aliases are removed.** Use `blobfs.FileIO`, 
`blobfs.KeyExtractor`, `blobfs.ErrEmptyObjectKey`, and 
`blobfs.ErrUnsupportedObjectAuthority` from `io/gocloud/blobfs`. Use 
`s3.ParseAWSConfig` from `io/gocloud/s3`. Configure GCS using [FileIO 
properties](./configuration.md#google-cloud-storage) in place of 
`ParseGCSConfig`.
 - **`RowDelta.Commit` can be called once per builder.** A second `Commit` on 
the same `RowDelta` now returns an error wrapping `table.ErrInvalidOperation` 
and stages nothing, even if the first call failed, as `RewriteFiles.Commit` 
does. Previously, calling `Commit` again after a failed first call could 
succeed, and calling it again after a successful one staged the builder's files 
a second time. Create a new builder with `Transaction.NewRowDelta` for each 
commit.
 - **Data-file replacements now reject concurrent deletes.** Commits staged 
through `ReplaceDataFiles`, `ReplaceDataFilesByPath`, `ReplaceFiles`, or 
rewrite operations can return `table.ErrConflictingDeleteFiles` when a 
concurrent position delete targets a replaced file or any concurrent equality 
delete is added. Compaction on tables with streaming equality deletes may see 
additional conflicts.
+- **Row deltas reject duplicate data-file paths.** `RowDelta` returns 
`table.ErrDuplicateDataFiles` for repeated paths within one delta or a 
duplicate added by a concurrent commit during retry. Dynamic partition 
overwrite can also return `table.ErrConflictingDeleteFiles` if a concurrent 
global equality delete applies to files being replaced.

Review Comment:
   Should the dynamic partition overwrite sentence move to the 
concurrent-deletes bullet just above? It's the same `ErrConflictingDeleteFiles` 
case, and someone scanning for that error won't look under a duplicate-paths 
headline.



##########
website/src/releases.md:
##########
@@ -63,10 +67,14 @@ Per-release notes (highlights, breaking changes, 
contributors) are published on
 - **Schema updates reject read-time type casts.** `UpdateSchema.UpdateColumn` 
now allows only Iceberg schema promotions. Changes such as `string` to `binary` 
and `fixed[16]` to `uuid` are rejected by default.
 - **Schema reads now reject invalid identifier fields.** Table and view 
metadata with `identifier-field-ids` referring to an optional, float/double, 
missing, non-primitive, or improperly nested field now fails to load with 
`invalid schema` (for example, `invalid schema: identifier field "foo" must be 
required` or `invalid schema: identifier field "foo" cannot be float or 
double`). Older iceberg-go releases could load such metadata, but Java Iceberg 
already rejects it. To recover an affected table, back up its metadata and use 
an atomic catalog metadata repair to remove the invalid identifier IDs or 
replace them with IDs of existing, required, non-floating primitive fields 
nested only in required structs. Do not edit the currently referenced metadata 
file in place. Repeated identifier IDs are deduplicated on read.
 - **Table history logs reject missing or null required fields.** Loading table 
metadata now fails with `table.ErrInvalidMetadata` if a `snapshot-log` entry 
omits or sets `snapshot-id` or `timestamp-ms` to `null`, or a `metadata-log` 
entry omits or sets `metadata-file` or `timestamp-ms` to `null`. Older 
iceberg-go releases silently accepted omitted or null fields as zero values, 
but Java Iceberg already rejects such metadata. Explicit zero values remain 
valid. Repair affected metadata through an atomic catalog metadata replacement 
instead of editing the currently referenced metadata file in place.
+- **Additional metadata validation.** Nested structs require a `fields` array. 
Write `[]` for an empty struct. Required statistics and Puffin footer fields 
must be present and non-null. Legacy statistics `blob-metadata` and `fields` 
arrays written as `null` by v0.7.0 still decode as empty. Puffin property 
values must be strings. Scans return `table.ErrInvalidMetadata` for a deletion 
vector without `referenced_data_file` or multiple live vectors for the same 
file.

Review Comment:
   Should this one carry a recovery step like the two bullets above it? Both of 
those tell users how to repair metadata that now fails to load; this one lists 
the new failures but not what to do about a table that hits them.



##########
website/src/releases.md:
##########
@@ -63,10 +67,14 @@ Per-release notes (highlights, breaking changes, 
contributors) are published on
 - **Schema updates reject read-time type casts.** `UpdateSchema.UpdateColumn` 
now allows only Iceberg schema promotions. Changes such as `string` to `binary` 
and `fixed[16]` to `uuid` are rejected by default.
 - **Schema reads now reject invalid identifier fields.** Table and view 
metadata with `identifier-field-ids` referring to an optional, float/double, 
missing, non-primitive, or improperly nested field now fails to load with 
`invalid schema` (for example, `invalid schema: identifier field "foo" must be 
required` or `invalid schema: identifier field "foo" cannot be float or 
double`). Older iceberg-go releases could load such metadata, but Java Iceberg 
already rejects it. To recover an affected table, back up its metadata and use 
an atomic catalog metadata repair to remove the invalid identifier IDs or 
replace them with IDs of existing, required, non-floating primitive fields 
nested only in required structs. Do not edit the currently referenced metadata 
file in place. Repeated identifier IDs are deduplicated on read.
 - **Table history logs reject missing or null required fields.** Loading table 
metadata now fails with `table.ErrInvalidMetadata` if a `snapshot-log` entry 
omits or sets `snapshot-id` or `timestamp-ms` to `null`, or a `metadata-log` 
entry omits or sets `metadata-file` or `timestamp-ms` to `null`. Older 
iceberg-go releases silently accepted omitted or null fields as zero values, 
but Java Iceberg already rejects such metadata. Explicit zero values remain 
valid. Repair affected metadata through an atomic catalog metadata replacement 
instead of editing the currently referenced metadata file in place.
+- **Additional metadata validation.** Nested structs require a `fields` array. 
Write `[]` for an empty struct. Required statistics and Puffin footer fields 
must be present and non-null. Legacy statistics `blob-metadata` and `fields` 
arrays written as `null` by v0.7.0 still decode as empty. Puffin property 
values must be strings. Scans return `table.ErrInvalidMetadata` for a deletion 
vector without `referenced_data_file` or multiple live vectors for the same 
file.
 
 - **`UpdateSchema` rejects deleting an identifier field.** `DeleteColumn` on 
an identifier column used to succeed and quietly drop the column from the 
table's identifier fields. Now `Apply` (and `Commit`) fails with `cannot delete 
identifier field …`, as in Java. Deleting a struct that contains one already 
failed, and now reports `cannot delete field … as it will delete nested 
identifier field …`. To delete the column anyway, also call 
`SetIdentifierField` with the identifier fields the schema should keep (for 
example `SetIdentifierField([][]string{})` to clear them). This also stops a 
new column that reuses a deleted identifier column's name from becoming the 
identifier.
 - **Schema JSON defaults preserve integer precision.** `long` defaults now 
decode as `int64` instead of `float64`; non-integral, non-numeric, or 
out-of-range values now fail to parse. Numeric literals inside object and list 
defaults decode as `json.Number` rather than `float64`.
+- **New Parquet decimal files use precision-based encodings.** Decimal 
precision through 9 uses `INT32`, precision through 18 uses `INT64`, and higher 
precision uses fixed-length bytes. The Iceberg decimal types and previously 
written files retain their existing representations.
 - **REST mutation keys can enable transport replay.** Namespace, table, view, 
transaction and scan-cancellation mutations listed in the [REST catalog 
documentation](./configuration.md) now carry fresh UUIDv7 `Idempotency-Key` 
headers when `GET /v1/config` returns a non-null `idempotency-key-lifetime`. 
Go's HTTP transport may replay certain failed requests on reused connections 
with the same key; the advertised lifetime is not yet enforced. Scan plan and 
task key handling is unchanged. When a lifetime is advertised, a default 
`Idempotency-Key` configured via `WithHeaders` is dropped after `GET 
/v1/config`.
+- **REST catalog and OAuth requests reject cross-origin redirects.** Configure 
the final URLs if a proxy or identity provider redirects requests to a 
different origin.

Review Comment:
   Which settings are "the final URLs" here, the catalog `uri` and the OAuth 
token endpoint? Naming the properties and the error a rejected redirect returns 
would let someone match this note to what they see.



##########
website/src/releases.md:
##########
@@ -42,10 +42,14 @@ Per-release notes (highlights, breaking changes, 
contributors) are published on
 
 ### Unreleased compatibility notes
 
+- **The minimum Go version is now 1.26.3.** v0.7.0 required Go 1.25.9. See the 
[install guide](./install.md).
+- **OpenTelemetry commit totals are gauges.** Commit totals describe table 
state after each commit. Update dashboards and alerts to use the latest value 
for each attribute set. See [OpenTelemetry 
metrics](./metrics-reporting.md#opentelemetry) for the instrument names.
 - **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. The new options are optional. Callers upgrading from v0.7.0 
must also pass a context to the Hadoop and SQL constructors. Assignments to a 
function type with an older signature need a wrapper. The default remains the 
global registry, including for `catalog.Load`.
+- **Deprecated `io/gocloud` aliases are removed.** Use `blobfs.FileIO`, 
`blobfs.KeyExtractor`, `blobfs.ErrEmptyObjectKey`, and 
`blobfs.ErrUnsupportedObjectAuthority` from `io/gocloud/blobfs`. Use 
`s3.ParseAWSConfig` from `io/gocloud/s3`. Configure GCS using [FileIO 
properties](./configuration.md#google-cloud-storage) in place of 
`ParseGCSConfig`.

Review Comment:
   The `blobfs`/`gcs` bullet two lines up already covers `gcs.ParseGCSConfig`, 
so unqualified this reads as a repeat. Naming the alias's package keeps the two 
apart ([gocloud.go#L61-L64 at 
v0.7.0](https://github.com/apache/iceberg-go/blob/89a9104ec3639d38ab07e4461721cb5270e95571/io/gocloud/gocloud.go#L61-L64)):
   
   ```suggestion
   - **Deprecated `io/gocloud` aliases are removed.** Use `blobfs.FileIO`, 
`blobfs.KeyExtractor`, `blobfs.ErrEmptyObjectKey`, and 
`blobfs.ErrUnsupportedObjectAuthority` from `io/gocloud/blobfs`. Use 
`s3.ParseAWSConfig` from `io/gocloud/s3`. Configure GCS using [FileIO 
properties](./configuration.md#google-cloud-storage) in place of 
`gocloud.ParseGCSConfig`.
   ```



-- 
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