rambleraptor opened a new pull request, #189:
URL: https://github.com/apache/terraform-provider-iceberg/pull/189

   Bumps iceberg-go to 
[v0.8.0](https://github.com/apache/iceberg-go/releases/tag/v0.8.0) and replaces 
provider code that has been upstreamed into it. The details are in #143.
   
   ## Replaced
   
   - `commitRequirements` is replaced by `table.RequirementsForUpdateTable` 
(apache/iceberg-go#2220), which is a port of Java's 
`UpdateRequirements.forUpdateTable`.
   - The checks in `validateSchemaEvolution` are replaced by 
`iceberg.ReadCompatibilityErrors(planned, current)` (apache/iceberg-go#2073), a 
port of Java's `CheckCompatibility`. It accepts and rejects the same changes as 
before, with different error wording. It is stricter in two places:
     - Adding a required column is now rejected, because existing data files 
have no value for it. Java's `UpdateSchema` rejects this too unless 
`allowIncompatibleChanges` is set.
     - List element and map value nullability get the same optional-to-required 
check as struct fields.
   
   ## Kept
   
   `assignFieldIDs` / `resolveFieldIDs` stay. `AssignFreshSchemaIDsWithBase` 
(apache/iceberg-go#2076) reuses an ID only when a field's name matches one in 
the base schema. A renamed field with a pinned `id`, which is how the docs say 
to rename a column, would get a fresh ID, so the rename would become a drop 
plus an add.
   
   ## Other changes from the bump
   
   - `catalog.TableNameFromIdent` was removed, so the provider uses 
`catalog.ObjectNameFromIdent`.
   - `rest.WithAwsConfig` is now `sigv4.WithAWSConfig`.
   - `iceberg.DecimalTypeOf` now returns an error. Only tests called it, and 
they use `MustDecimalTypeOf`.
   - `LICENSE-binary` is regenerated with `dev/update_licenses.sh`, and 
`NOTICE-binary` has a new entry for `github.com/apache/datasketches-go`.
   
   ## Testing
   
   - `go test ./...`
   - `TF_ACC=1 go test ./...` against `dev/docker-compose.yml`: all 24 
acceptance tests pass
   - `dev/update_licenses.sh --check`
   - New unit cases cover adding a required column and changing a list element 
from optional to required.
   
   Refs #143


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