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

   ### Description
   
   Fixes #1776
   
   As said in the issue, `UpdateSchema.Apply()` derived `IdentifierFieldIDs` by 
iterating a Go map, yielding non-deterministic order. `Schema.Equals` compares 
these ids positionally, so identical schemas compared unequal at random, 
producing spurious duplicate schema versions in `BuildUpdates()`.
   
   Sorting `identifierFieldIDs` in `Apply()` to produce a deterministic, 
canonical order fixes this problem.
   
   ### Testing
   
   Added `TestSetIdentifierFieldDeterministicOrder` as a regression test. 
(across multiple iterations, asserts sorted output and cross-run equals)


-- 
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