sgilmore10 commented on issue #38630:
URL: https://github.com/apache/arrow/issues/38630#issuecomment-1800190971

   The same bug also manifests itself when accessing the Valid property on all 
sliced arrays. This is because both BooleanArray's toMATLAB method and the 
Valid getter function call arrow::matlab::bit::unpack(const 
std::shared_ptr<arrow::Buffer>& packed_buffer, int64_t length). This function 
calls VisitBitsUnrolled(const uint8_t* bitmap, int64_t start_offset, int64_t 
length, Visitor&& visit) with the assumption that start_offset is always 0. 
However, when the array has been sliced, start_offset will not be 0. Updating 
our unpack function to accept start_offset as input should fix both issues.


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