badalprasadsingh opened a new issue, #1776: URL: https://github.com/apache/iceberg-go/issues/1776
### Apache Iceberg version main (development) ### Please describe the bug 🐞 Right now, `UpdateSchema.Apply()` builds the evolved schema's `IdentifierFieldIDs` by iterating `u.identifierFieldNames`, a Go map. Map iteration order is _randomized_, so the resulting slice ordering is non-deterministic. `Schema.Equals` compares `IdentifierFieldIDs` positionally via `slices.Equal`, so two logically identical schemas (same identifier fields) can compare unequal across runs. This causes `BuildUpdates()` to register spurious duplicate schema versions and pollutes schema history. Ideal Fix: sort `identifierFieldIDs` ### Contribution Will raise a PR for the fix. -- 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]
