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

   ### Rationale for this change
   
   Importing a union with duplicate type codes or a sparse child shorter than 
the parent's offset and length panics instead of returning an error.
   
   Fixes #1679.
   
   ### What changes are included in this PR?
   
   Reject duplicate type codes before constructing the union type, and check 
sparse-child coverage before constructing the array data. Both cases return 
`arrow.ErrInvalid`.
   
   ### Are these changes tested?
   
   Added regressions for duplicate sparse/dense type codes and short sparse 
children, including sliced parents and release-count checks. Both 
malformed-input cases panic before the fix.
   
   The C Data and array package tests passed with `assert,test` and 
`assert,test,noasm`; the C Data race check passed too. Default `go vet` reports 
the same two existing `unsafe.Pointer` warnings as upstream in `interface.go`; 
the remaining analyzers passed.
   
   ### Are there any user-facing changes?
   
   Malformed union imports return errors instead of panicking.
   


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