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

fix: Fix panic when using fold in certain situations #17114

Merged

Conversation

coastalwhite
Copy link
Collaborator

Fixes #15444.

This PR makes the get_field method of GetOutput fallible. Consequently, we can bubble up a lot more errors related to super typing instead of panicking.

Although, I would normally add a test case here. I don't think this PR warrants one as the exact super typing behavior might be changed later.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jun 21, 2024
Fixes pola-rs#15444.

This PR makes the `get_field` method of `GetOutput` fallible. Consequently, we can bubble up a lot more errors related to super typing instead of panicking.

Although, I would normally add a test case here. I don't think this PR warrants one as the exact super typing behavior might be changed later.
@coastalwhite coastalwhite force-pushed the result-for-specialeq-supertype-15444 branch from 231e10f to 5dd3af7 Compare June 21, 2024 14:34
@ritchie46 ritchie46 merged commit 5b85138 into pola-rs:main Jun 22, 2024
26 checks passed
@coastalwhite coastalwhite deleted the result-for-specialeq-supertype-15444 branch June 22, 2024 10:03
@coastalwhite coastalwhite self-assigned this Jun 24, 2024
@coastalwhite coastalwhite added the accepted Ready for implementation label Jun 24, 2024
@stinodego stinodego changed the title fix: make GetOutput::get_field fallible fix: Fix panic when using fold in certain situations Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Function fold panics with struct with Boolean field
2 participants