felipecrv commented on PR #41189:
URL: https://github.com/apache/arrow/pull/41189#issuecomment-2054055091
> So the child validity would be undefined for null parent here?
It will de defined as valid + empty value. What empty means depends on the
type. For integers it's `0`, for strings it's `""`...
Example from the CI logs:
```
___________ [doctest] pyarrow.lib.FixedSizeListArray.values.__get__
____________
3323 FixedSizeListArray.flatten : ...
3324
3325 Examples
3326 --------
3327 >>> import pyarrow as pa
3328 >>> array = pa.array(
3329 ... [[1, 2], None, [3, None]],
3330 ... type=pa.list_(pa.int32(), 2)
3331 ... )
3332 >>> array.values
Differences (unified diff with -expected +actual):
@@ -1,8 +1,8 @@
-<pyarrow.lib.Int32Array object at ...>
+<pyarrow.lib.Int32Array object at 0x7f9ee8e430c0>
[
1,
2,
- null,
- null,
+ 0,
+ 0,
3,
null
```
--
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]