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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   ```py
   >>> import pyarrow                                                           
 
   >>> pyarrow.array([0, 1, 2], type = "date32")     
   <pyarrow.lib.Date32Array object at 0x705c8e941f00>                           
       
   [            
     1970-01-01,
     1970-01-02,                                                                
 
     1970-01-03                           
   ]                                                                            
 
   >>> pyarrow.array(np.array([0, 1, 2]), type = "date32")                      
 
   Traceback (most recent call last):                                           
 
     File "<python-input-4>", line 1, in <module>            
       pyarrow.array(np.array([0, 1, 2]), type = "date32")              
       ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^         
     File "pyarrow/array.pxi", line 414, in pyarrow.lib.array           
     File "pyarrow/array.pxi", line 97, in pyarrow.lib._ndarray_to_array        
 
       check_status(NdarrayToArrow(pool, values, mask, from_pandas,
     File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status             
 
   pyarrow.lib.ArrowNotImplementedError: Unsupported cast from int64 to date32 
using function cast_date32
   ```
   
   I'm on `pyarrow` 26.0.0 and `numpy` 2.5.4.
   
   ### 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