aiudirog commented on issue #45086: URL: https://github.com/apache/arrow/issues/45086#issuecomment-2576369756
I found the bug! It appears allocations for new chunked arrays don't account for the `BooleanType.byte_width()` returning 0: https://github.com/apache/arrow/blob/6a0414bd9a91e890ec6a45369bf61f405180628c/cpp/src/arrow/type.h#L608-L609 https://github.com/apache/arrow/blob/6a0414bd9a91e890ec6a45369bf61f405180628c/cpp/src/arrow/type.h#L186-L192 This results in the allocation of a chunk with 0 bytes in it, but with the length declared to that of the original chunk. Example in `ForwardFillChunked.Exec()`: https://github.com/apache/arrow/blob/6a0414bd9a91e890ec6a45369bf61f405180628c/cpp/src/arrow/compute/kernels/vector_replace.cc#L693-L699 -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org