-
Notifications
You must be signed in to change notification settings - Fork 81
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
Update polars to fix PanicException #2585
Conversation
i wanted to add a testcase for this but i don't understand what's different comparing to what we already have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my review is somewhat superficial, because I don't know the code well, and we could not reproduce the issue with a unit test...
Could you test on a specific dataset and see if it fixed the issue?
|
||
def test_polars_struct_thread_panic_error(struct_thread_panic_error_parquet_file: str) -> None: | ||
from polars import Float64, List, Struct | ||
from polars import Utf8 as String # string type in polars <0.20 is called Utf8, in 0.20 it's an alias to String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we use 0.20, we can just import String, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it was just to check that 0.19 fails. should i do just from polars import String
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. I understand that it was for 0.19, but now that we use 0.20, it's not needed anymore, right?
should fix the viewer for https://huggingface.co/datasets/teknium/OpenHermes-2.5 and presumably many others
There is and issue for this in polars: pola-rs/polars#3942.
I didn't understand though why some cases with nested structs work while some like this doesn't