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

   ## Summary
   - Harden protobuf union/oneof dereference logic to avoid panics on 
nil/invalid reflection values.
   - In `protobufUnionReflection.isThisOne`, dereference pointers/interfaces 
only when non-nil and return false for invalid/empty values.
   - Harden `ProtobufMessageReflection.getFieldByName` when dereferencing 
pointer/interface fields to avoid zero-value reflection from nil 
pointers/interfaces.
   - Add regression coverage for oneof union behavior with unset, nil-pointer, 
and valid oneof values (`TestUnionReflectionHandlesUnsetAndNilOneofValues`).
   
   ## Testing
   - `go test ./arrow/util -run 
"TestUnionReflectionHandlesUnsetAndNilOneofValues|TestIsNullDoesNotMutateReflectionState|TestGetMapKeyRejectsUnsupportedType|TestMapAppendReturnsContextualErrorForUnsupportedKey|TestAppendValueOrNull"`
   


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

Reply via email to