skyon0522-ai opened a new pull request, #11649: URL: https://github.com/apache/arrow-rs/pull/11649
# Which issue does this PR close? - Closes #11582 # Rationale for this change Converting sliced sparse union `ArrayData` into an array currently reads values outside the slice. A single-child union can also return a logical null mask longer than the resulting array. # What changes are included in this PR? Apply the parent offset and length to sparse child data before constructing the child arrays. Dense children retain their existing offsets and lengths. # Are these changes tested? Regression tests compare conversion from sliced `ArrayData` with direct union slicing, including nonzero offsets, truncation at offset zero, empty slices, custom type IDs, nullable values, and a dense-union control. AI assistance was used to analyze the conversion path and draft the code, regression tests, and this description. # Are there any significant user-facing changes? No public API 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]
