Wainberg commented on issue #40909:
URL: https://github.com/apache/arrow/issues/40909#issuecomment-2028539713

   A fifth example with `datetime.date` and `int`:
   
   ```python
   >>> pa.array(np.array([datetime.date(2021, 2, 3), 1], dtype=object))
   <pyarrow.lib.Date32Array object at 0x7f18ca307e20>
   [
     2021-02-03,
     1970-01-02
   ]
   >>> pa.array(np.array([1, datetime.date(2021, 2, 3)], dtype=object))
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "pyarrow/array.pxi", line 340, in pyarrow.lib.array
     File "pyarrow/array.pxi", line 86, in pyarrow.lib._ndarray_to_array
     File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
   pyarrow.lib.ArrowInvalid: Could not convert datetime.date(2021, 2, 3) with 
type datetime.date: tried to convert to int64
   ```


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