-
-
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
Writing dataframes containing List types in rust is not readable in Python #3312
Comments
Can you read it in rust? |
most likely not - fixed with jorgecarleitao/arrow2#978 |
Let me find out. From my limited understanding I think polars produces LargeList data types with the code I pasted which the arrow2 crate can't read yet. I tried casting things to regular List data type but couldn't make it work. |
Is this related to jorgecarleitao/arrow2#937? |
Just to confirm the same issue appears when reading the parquet file from rust:
So to make this work the fix in jorgecarleitao/arrow2#978 needs to be merged, new arrow2 version needs to be released and polars needs to bump its dependency? |
Merged and arrow2 0.11.2 released :) |
On fire today! |
Fixed in #3316 |
What language are you using?
Rust -> Python
Which feature gates did you use?
parquet
Have you tried latest version of polars?
yes
What version of polars are you using?
rust: 0.21.1
python: 0.13.29
What operating system are you using polars on?
Ubuntu LTS 2022
What language version are you using
rust 1.60.0
Python 3.8.10
Describe your bug.
Writing dataframes containing List types in rust is not readable in Python
What are the steps to reproduce the behavior?
Rust code to create a df:
produces the output:
and a file
debug.parquet
being written to disk.Python code to read
What is the actual behavior?
Produces the following error:
What is the expected behavior?
I would expect a file that I can write in rust to be readable in python.
The text was updated successfully, but these errors were encountered: