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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   ```python
   import pyarrow as pa
   
   table = pa.table({"a": pa.array([]), "b": pa.array([], type=pa.float64())})
   array = table.to_struct_array()
   ```
   
   ```
   File 
~/.virtualenvs/nested-pandas/lib/python3.13/site-packages/pyarrow/table.pxi:4963,
 in pyarrow.lib.Table.to_struct_array()
   
   File 
~/.virtualenvs/nested-pandas/lib/python3.13/site-packages/pyarrow/table.pxi:1551,
 in pyarrow.lib.chunked_array()
   
   File 
~/.virtualenvs/nested-pandas/lib/python3.13/site-packages/pyarrow/error.pxi:155,
 in pyarrow.lib.pyarrow_internal_check_status()
   
   File 
~/.virtualenvs/nested-pandas/lib/python3.13/site-packages/pyarrow/error.pxi:92, 
in pyarrow.lib.check_status()
   
   ArrowInvalid: cannot construct ChunkedArray from empty vector and omitted 
type
   ```
   
   I guess it is because zero-chunk case is not covered here:
   
https://github.com/apache/arrow/blob/03bdb2a1901a10fc1c0f41bcd7dfa0f68a9a5aff/python/pyarrow/table.pxi#L4963-L4966
   
   ### 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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to