fallintoplace opened a new pull request, #1508: URL: https://github.com/apache/iceberg-go/pull/1508
## Summary - validate directly constructed bucket counts and truncate widths before serialization or execution - reject parameter values outside the parser-supported range of 1 through `math.MaxInt32` - validate truncate transforms when building partition specs ## Why `ParseTransform` rejects invalid parameter values, but callers can construct the exported transform structs directly. A zero truncate width reaches integer modulo and panics, while values such as `1 << 32` narrow to zero in the int32 paths and can panic for both bucket and truncate transforms. ## Testing - `go test ./...` - `go test -race ./codec/... ./table/...` - `golangci-lint run --timeout=10m` - focused transform and partition-spec regression tests -- 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]
