laskoviymishka opened a new pull request, #2766: URL: https://github.com/apache/iceberg-go/pull/2766
This splits `internal/uuid` by Go version: `uuid_google.go` keeps the current `google/uuid` code behind `//go:build !go1.27`, and `uuid_std.go` exposes the same names on the standard library `uuid` package behind `//go:build go1.27`. On Go 1.27 and later `iceberg.UUID` is the standard type, and `github.com/google/uuid` is imported by one file. arrow-go still uses `google/uuid` in its UUID array, builder and variant APIs, so the places that cross that boundary now convert explicitly, with two small helpers in `internal/uuid/convert.go` (`PassTo` and `FromArray`). Without them the 1.27 build fails and UUID variants stop casting. Checked with `go build ./...`, `go vet ./...` and `go test ./...` on Go 1.27.4 and on 1.26.8, so both files are built and tested. The existing UUID literal, variant and arrow round-trip tests cover the conversions on 1.27. On Go 1.27 the standard type has no `Version`, `Variant`, `MarshalBinary`, `URN` or `Time` methods. Callers holding a `google/uuid` value convert it with `iceberg.UUID(v)`. This is noted in the release notes. Part of #2062. > AI-assisted, reviewed by a human. -- 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]
