paleolimbot opened a new pull request, #1051:
URL: https://github.com/apache/arrow-nanoarrow/pull/1051

   Zero-length bitmap slices at byte-aligned offsets could yield one bit, 
producing phantom rows when iterating empty structs. Return before reading the 
bitmap when length is zero.
   
   Adds regression coverage for aligned, unaligned, and end-of-buffer offsets, 
plus iter_py() and iter_tuples() on empty structs containing boolean or 
nullable fixed-size-list children. This fixes the root cause discovered while 
reviewing #1041 and is independent of that PR.
   
   Validation: six regression cases failed before the fix; 348 tests and 120 
doctests pass afterward (four CUDA/CuPy skips) on CPython 3.14.
   
   ```python
   import pyarrow as pa
   from nanoarrow.iterator import iter_py
   
   array = pa.array([{"value": True}]).slice(0, 0)
   print(list(iter_py(array)))
   # []
   ```
   


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