wjones127 opened a new issue, #37411:
URL: https://github.com/apache/arrow/issues/37411
### Describe the bug, including details regarding any error messages,
version, and platform.
In PyArrow 12, you could do:
```python
>>> import pyarrow as pa
>>> pa.scalar('2021-01-01').cast(pa.date32())
<pyarrow.Date32Scalar: datetime.date(2021, 1, 1)>
```
But in PyArrow 13, this no longer works:
```python
>>> import pyarrow as pa
>>> pa.scalar('2021-01-01').cast(pa.date32())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyarrow/scalar.pxi", line 91, in pyarrow.lib.Scalar.cast
File
"/Users/willjones/Documents/delta-rs/python/venv/lib/python3.10/site-packages/pyarrow/compute.py",
line 403, in cast
return call_function("cast", [arr], options, memory_pool)
File "pyarrow/_compute.pyx", line 572, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 367, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 144, in
pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 121, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Unsupported cast from string to date32
using function cast_date32
```
This is likely due to the changes in:
https://github.com/apache/arrow/issues/35040
There is a scalar cast implementation for string -> date32, but no array
implementation.
### 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]