stemillington-flock opened a new issue, #44853:
URL: https://github.com/apache/arrow/issues/44853

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The following code runs without problem
   ```
   from pyarrow import schema, struct, field
   from pyarrow import uuid
   
   schema([
           field("col", uuid())
   ]).empty_table()
   ```
   
   However when i try to move the uuid column into a struct as below
   ```
   schema([
       field("parent", struct([
           field("col", uuid())
       ]))
   ]).empty_table()
   ```
   
   I get the error
   ```
   ArrowNotImplementedError                  Traceback (most recent call last)
   Cell In[77], [line 5](vscode-notebook-cell:?execution_count=77&line=5)
         [1](vscode-notebook-cell:?execution_count=77&line=1) schema([
         [2](vscode-notebook-cell:?execution_count=77&line=2)     
field("parent", struct([
         [3](vscode-notebook-cell:?execution_count=77&line=3)         
field("col", uuid())
         [4](vscode-notebook-cell:?execution_count=77&line=4)     ]))
   ----> [5](vscode-notebook-cell:?execution_count=77&line=5) ]).empty_table()
   
   File 
~/Code/map-matching/.venv/lib/python3.12/site-packages/pyarrow/types.pxi:2988, 
in pyarrow.lib.Schema.empty_table()
   
   File 
~/Code/map-matching/.venv/lib/python3.12/site-packages/pyarrow/array.pxi:4791, 
in pyarrow.lib._empty_array()
   
   File 
~/Code/map-matching/.venv/lib/python3.12/site-packages/pyarrow/array.pxi:370, 
in pyarrow.lib.array()
   
   File 
~/Code/map-matching/.venv/lib/python3.12/site-packages/pyarrow/array.pxi:42, in 
pyarrow.lib._sequence_to_array()
   
   File 
~/Code/map-matching/.venv/lib/python3.12/site-packages/pyarrow/error.pxi:155, 
in pyarrow.lib.pyarrow_internal_check_status()
   
   File 
~/Code/map-matching/.venv/lib/python3.12/site-packages/pyarrow/error.pxi:92, in 
pyarrow.lib.check_status()
   
   ArrowNotImplementedError: extension
   ```
   
   This appears to happen when any extension type is moved into a struct. Using 
pyarrow 18.0.0 on a mac book pro M2.
   
   ### 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