lccnl opened a new issue, #34704:
URL: https://github.com/apache/arrow/issues/34704

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Hello,
   when a struct array has null values, accessing a child via `array.field` 
returns an array where all values are valid. 
   This is not the case if the struct is flattened and we take the child in the 
list returned.
   I tested and observed it with pyarrow 8.0 and 11.0 (did not try other 
versions).
   
   ```
   import pyarrow as pa
   
   struct=pa.StructArray.from_arrays([pa.array([1])],names=['ex1'])
   struct=pa.concat_arrays([struct,pa.array([None],type=struct.type)])
   
   assert not all(struct.is_valid().to_pylist())
   assert all(struct.field('ex1').is_valid().to_pylist())
   assert not all(struct.flatten()[0].is_valid().to_pylist())```
   
   ### Component(s)
   
   Python


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