laskoviymishka commented on code in PR #2638:
URL: https://github.com/apache/iceberg-go/pull/2638#discussion_r4642027304
##########
website/src/releases.md:
##########
@@ -100,6 +100,7 @@ Per-release notes (highlights, breaking changes,
contributors) are published on
- **RowDelta reports a concurrent deletion vector as a commit conflict.** If a
concurrent commit adds a deletion vector for a data file that a `RowDelta` also
adds one for, `Transaction.Commit` now fails with an error matching
`table.ErrConflictingDeleteFiles`, `table.ErrCommitFailed` and
`table.ErrTransactionUnusable`, and the transaction cannot be committed again.
Previously, the error matched none of them and the transaction stayed usable.
To resolve the conflict, reload the table and commit a `RowDelta` that adds one
deletion vector merging the positions of both vectors and removes the
concurrent one with `RemoveDeletes`.
- **Schema JSON constructor uses the Go initialism.** Replace
`iceberg.NewSchemaFromJsonFields` with `iceberg.NewSchemaFromJSONFields`.
- **AWS identifiers use the Go initialism.** `glue.AwsProperties`,
`glue.WithAwsConfig` and `glue.WithAwsProperties` become `glue.AWSProperties`,
`glue.WithAWSConfig` and `glue.WithAWSProperties`; `sigv4.WithAwsConfig`
becomes `sigv4.WithAWSConfig`; `utils.WithAwsConfig` and `utils.GetAwsConfig`
become `utils.WithAWSConfig` and `utils.GetAWSConfig`; and
`config.CatalogConfig.AwsProfile` becomes `AWSProfile`. The `aws-profile` YAML
key is unchanged.
+- **`utils` is now `awsconfig`.** `utils.WithAWSConfig` and
`utils.GetAWSConfig` move to `github.com/apache/iceberg-go/awsconfig` with the
same names and behavior. Update the import path; the `utils` package is removed.
Review Comment:
Fixed in 39f8fe3e6a.
##########
catalog/glue/glue.go:
##########
@@ -329,7 +329,7 @@ func (c *Catalog) CreateTable(ctx context.Context,
identifier table.Identifier,
}
// Use the catalog's AWS config, not the ambient chain, for the
metadata write.
- ctx = utils.WithAWSConfig(ctx, c.awsCfg)
+ ctx = awsconfig.WithAWSConfig(ctx, c.awsCfg)
Review Comment:
Agreed, went with NewContext and FromContext. Fixed in 39f8fe3e6a.
--
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]