We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to create a list array where each element is an array of a custom extension type, but I'm getting an ArrowNotImplementedError: extension.
ArrowNotImplementedError: extension
Taken RelationType created in the pyarrow office doc as example (link),
RelationType
import pyarrow as pa class RationalType(pa.ExtensionType): # ... (Your RationalType code) ... rational_type = RationalType(pa.int32()) data1 = [{"numer": 1, "denom": 17}, {"numer": 2, "denom": 13}] data2 = [{"numer": 3, "denom": 34}, {"numer": 4, "denom": 60}] pa.array(data1, type=rational_type) # Works fine pa.array([data1, data2], type=pa.list_(rational_type)) # Raises ArrowNotImplementedError
The code raises the following error:
--------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) Cell In[33], [line 1](vscode-notebook-cell:?execution_count=33&line=1) ----> [1](vscode-notebook-cell:?execution_count=33&line=1) pa.array([data1, data2], type=pa.list_(rational_type)) File ~/src/python-db-dtypes-pandas/venv/lib/python3.12/site-packages/pyarrow/array.pxi:370, in pyarrow.lib.array() File ~/src/python-db-dtypes-pandas/venv/lib/python3.12/site-packages/pyarrow/array.pxi:42, in pyarrow.lib._sequence_to_array() File ~/src/python-db-dtypes-pandas/venv/lib/python3.12/site-packages/pyarrow/error.pxi:155, in pyarrow.lib.pyarrow_internal_check_status() File ~/src/python-db-dtypes-pandas/venv/lib/python3.12/site-packages/pyarrow/error.pxi:92, in pyarrow.lib.check_status() ArrowNotImplementedError: extension
Python
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug, including details regarding any error messages, version, and platform.
Description
I'm trying to create a list array where each element is an array of a custom extension type, but I'm getting an
ArrowNotImplementedError: extension
.Reproduction steps
Taken
RelationType
created in the pyarrow office doc as example (link),Actual behavior:
The code raises the following error:
Environment
Component(s)
Python
The text was updated successfully, but these errors were encountered: