You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "fallintoplace (via GitHub)" <gi...@apache.org> on 2026/07/04 16:18:36 UTC

[PR] fix(types): safe compare defaults in NestedField.Equals [iceberg-go]

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

   ## Summary
   
   `NestedField.Equals` compared `InitialDefault` and `WriteDefault` with `==`, which can panic when defaults contain non-comparable values (maps/slices/etc).
   
   This changes equality to use `reflect.DeepEqual` for defaults so schema/field comparisons stay safe and correct with nested defaults.
   
   Also adds a regression test that verifies:
   - non-comparable defaults no longer panic in `Equals`, and
   - equivalent deep structures compare equal while different defaults compare false.
   
   ## Testing
   
   - `go test ./... -run 'TestNestedFieldEqualsWithNonComparableDefaults|TestUnknownTypeInNestedStructs|TestTypesBasic' -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: 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(types): safe compare defaults in NestedField.Equals [iceberg-go]

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


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