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

   ## Description
   This pull request fixes a bug in computing the HighestFieldID when a schema 
contains map types. The `findLastFieldID` visitor previously would return the 
max of the key result and value result, while it should also be taking the max 
of it's `KeyID` and `ValueID`.
   
   ## Testing
   This PR introduced a new `MapType` field on the test schema, and a new test 
case, `TestHighestFieldID` to validate the computation. It's worth noting that 
this edge case only gets hit when a map of primitive types is the last field in 
the schema.  
   
   The test case was run without and with the bug fix to validate the changes.


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