Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] cast doesn't work for structure in pyarrow #35408

Open
schaefer01 opened this issue May 3, 2023 · 0 comments
Open

[Python] cast doesn't work for structure in pyarrow #35408

schaefer01 opened this issue May 3, 2023 · 0 comments

Comments

@schaefer01
Copy link

Describe the bug, including details regarding any error messages, version, and platform.

these are the links for the C++ issue that was solved and closed.

https://issues.apache.org/jira/browse/ARROW-1888
#17882

please do the same for python:

import pyarrow as pa
pa.version
'12.0.0

pa_bytes = pa_result.cast(target_type=pa.uint8())
Traceback (most recent call last):
File "", line 1, in
File "pyarrow/array.pxi", line 935, in pyarrow.lib.Array.cast
File "/usr/local/lib/python3.8/site-packages/pyarrow/compute.py", line 400, 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 struct<r: int16, i: int16> to uint8 using function cast_uint8

Component(s)

Python

@raulcd raulcd changed the title cast doesn't work for structure in pyarrow [Python] cast doesn't work for structure in pyarrow May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant