jorisvandenbossche commented on issue #44881:
URL: https://github.com/apache/arrow/issues/44881#issuecomment-2535241936

   So a smaller reproducer:
   
   ```
   In [99]: arr = pa.array([[{"key": None}, {"key": None}]])
   
   In [100]: arr
   Out[100]: 
   <pyarrow.lib.ListArray object at 0x7f15cdeeb760>
   [
     -- is_valid: all not null
     -- child 0 type: null
   2 nulls
   ]
   
   In [101]: arr.cast(arr.type)
   Out[101]: 
   <pyarrow.lib.ListArray object at 0x7f15c645f7c0>
   <Invalid array: List child array invalid: Invalid: Struct child array #0 has 
length smaller than expected for struct array (1 < 2)>
   ```


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