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

   ### Summary
   
   Fixes a panic when reading manifest partition data where avro returns a nil 
value for a logical partition field.
   
   Previously, `convertAvroValueToIcebergType` could reach the `atype.Date` 
branch with a nil value and panic with:
   
   interface conversion: interface {} is nil, not in32
   
   This change return nil immediately when the Avro partition value is nil.
   
   ### Testing
   
   Added a regresion test that builds a data file with a nil `dt` partition 
value mapped to field ID 1000 using Avro logical type `date` then calls 
`ValueCounts()` to exercise the same inilization path.
   
   Verified with:
   
   go test -run TestDataFileInitializeMapDataHandlesNilLogicalPartitionValue . 
   go test ./... 
   git diff --check


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