danepitkin opened a new issue, #36277:
URL: https://github.com/apache/arrow/issues/36277
### Describe the bug, including details regarding any error messages,
version, and platform.
Array does not allow this conversion, but Table does.
```
>>> import pyarrow as pa
>>> import datetime
>>> pa.table([pa.array([datetime.date(2000, 1, 1)])],
schema=pa.schema([pa.field('date', pa.timestamp('s'))]))
pyarrow.Table
date: timestamp[s]
----
date: [[2000-01-01 00:00:00]]
>>> pa.array([datetime.date(2000, 1, 1)], type=pa.timestamp('s'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyarrow/array.pxi", line 327, in pyarrow.lib.array
result = _sequence_to_array(obj, mask, size, type, pool, c_from_pandas)
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
chunked = GetResultValue(
File "pyarrow/error.pxi", line 144, in
pyarrow.lib.pyarrow_internal_check_status
return check_status(status)
File "pyarrow/error.pxi", line 123, in pyarrow.lib.check_status
raise ArrowTypeError(message)
pyarrow.lib.ArrowTypeError: object of type <class 'datetime.date'> cannot be
converted to int
```
### 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]