laskoviymishka opened a new pull request, #2764:
URL: https://github.com/apache/iceberg-go/pull/2764

   This moves `table`, `view`, `udf`, `catalog` and `cmd`, tests included, from 
`github.com/google/uuid` to `internal/uuid`, so `internal/uuid/uuid.go` is the 
only file left that imports `google/uuid`. The import swap was one scripted 
rewrite. The remaining call sites now use only what `google/uuid` and the Go 
1.27 standard library `uuid` both provide: `uuid.Nil` becomes `uuid.UUID{}`, 
`NewRandom` and `NewString` become `New` and `New().String()`, and the 
Version/Variant check on the REST idempotency key becomes the byte tests it 
stands for. `internal/uuid` gets one new function, `NewV7`, which the 
idempotency key needs.
   
   There is no behavior change and no exported signature changes type, because 
`iceberg.UUID`, `internal/uuid.UUID` and `google/uuid.UUID` are the same type 
through aliases. In tests, the `NewMD5` values are now fixed literals with the 
same value, and the metadata file location tests check the shape of the path 
instead of pinning the random source with `SetRand`. Checked with `go build 
./...`, `go vet ./...` with and without `-tags integration`, and `go test 
-short` on the touched packages.
   
   The Go 1.27 build tag for `internal/uuid` is left for a follow-up.
   
   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]

Reply via email to