kylebarron commented on issue #34316:
URL: https://github.com/apache/arrow/issues/34316#issuecomment-1442772474
That doesn't appear to work:
```py
In [8]: primitive_array = pa.array([1, 2, 3, 4, 5], mask=pa.array([True,
False, True, False, True]))
In [9]: list_arr = pa.FixedSizeListArray.from_arrays(primitive_array, 1)
In [10]: list_arr.is_valid()
Out[10]:
<pyarrow.lib.BooleanArray object at 0x1028a4dc0>
[
true,
true,
true,
true,
true
]
```
In your example the validity is assigned to the underlying primitive array,
not the fixed size list array itself. According to
https://arrow.apache.org/docs/format/Columnar.html#buffer-listing-for-each-layout
the FixedSizeListArray should store its own validity array. I want to ensure
FFI compatibility between Arrow implementations, which means it's important to
be able to set the fixed size list array's mask correctly.
I'm looking to store geoarrow points, not multidimensional arrays, so those
discussions don't appear to be relevant to me
--
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]