fallintoplace opened a new pull request, #1380: URL: https://github.com/apache/iceberg-go/pull/1380
## Summary Fix a panic in requirement validation when metadata lacks last partition spec ID (for example v1 or malformed metadata). The previous implementation directly dereferenced `meta.LastPartitionSpecID()` and could panic. This change now checks for nil and returns a clean requirement failure message: - `requirement failed: last assigned partition id is missing` When the field is present, behavior is unchanged and the previous comparison path still validates for mismatches. ## Testing - `go test ./table -run TestAssertLastAssignedPartitionIDValidate -count=1` -- 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]
