fallintoplace opened a new pull request, #881: URL: https://github.com/apache/arrow-go/pull/881
### What changed `NewSparseUnionFromArraysWithFieldCodes` now normalizes the type ID value buffer to the input array's logical window before constructing sparse union data. ### Why The constructor previously stored `typeIDs.Data().Offset()` on the union `ArrayData` while borrowing the unsliced type ID buffer. For sparse unions, `union.setData` uses that `ArrayData` offset to slice children, so passing sliced type IDs with logical-length children could panic or read the wrong physical type ID entries. ### Validation - `go test ./arrow/array -run 'TestUnions/TestMakeSparse' -count=1` - `go test ./arrow/array -count=1` - `PARQUET_TEST_DATA=/Users/hoangvu/Code/OSS/arrow-go/parquet-testing/data ARROW_TEST_DATA=/Users/hoangvu/Code/OSS/arrow-go/arrow-testing/data go test ./... -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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
