You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "badalprasadsingh (via GitHub)" <gi...@apache.org> on 2026/08/12 09:48:13 UTC

[PR] fix(table): sort identifier field IDs for deterministic schema updates [iceberg-go]

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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] fix(table): sort identifier field IDs for deterministic schema updates [iceberg-go]

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade merged PR #1777:
URL: https://github.com/apache/iceberg-go/pull/1777


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org