-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add support for FixedSizeList from Arrow instead of crashing on from_arrow #8023
Comments
@ritchie46 I would like to contribute a fix to this. Can you point me to some files I should look at? |
This is a duplicate of #4014 I think |
I've been meaning to add FixedSizeList support for a while but haven't found the time yet. The previous suggestion from Ritchie for reference is here: https://discord.com/channels/908022250106667068/908022461751234570/1074262804183404574
|
This issue can probably be closed given #8943 |
Yep, this now works fine: import pyarrow as pa
import polars as pl
values = pa.array([1, 2, 3, 4])
arr = pa.FixedSizeListArray.from_arrays(values, 2)
s = pl.from_arrow(arr)
print(s)
|
Got this error after using
|
Could you please open a new issue for this? |
Polars version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Issue description
Arrow has a data type called FixedSizeList. Currently making Polars DataFrame from an Arrow table with this doesn't work.
This data type is quite important for embeddings etc.
Reproducible example
Expected behavior
Works.
Installed versions
The text was updated successfully, but these errors were encountered: