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 type inference error in map_elements for List types #18542

Merged
merged 5 commits into from
Sep 4, 2024

Conversation

stinodego
Copy link
Member

Ref #18472

There are more related errors here - picking those up separately.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Sep 4, 2024
Comment on lines +49 to +52
let dt = series.dtype();

// Null dtype may be incorrect, fall back to AnyValues logic.
if dt.is_nested_null() {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix - the rest is minor refactoring.

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 47.82609% with 84 lines in your changes missing coverage. Please review.

Project coverage is 79.82%. Comparing base (6d4b79d) to head (da689fd).
Report is 40 commits behind head on main.

Files with missing lines Patch % Lines
crates/polars-python/src/series/map.rs 45.80% 84 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18542      +/-   ##
==========================================
+ Coverage   79.80%   79.82%   +0.02%     
==========================================
  Files        1501     1502       +1     
  Lines      201952   201950       -2     
  Branches     2868     2868              
==========================================
+ Hits       161163   161215      +52     
+ Misses      40243    40189      -54     
  Partials      546      546              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit dab8254 into main Sep 4, 2024
26 of 27 checks passed
@ritchie46 ritchie46 deleted the fix-map-skip-nulls branch September 4, 2024 10:51
@c-peters c-peters added the accepted Ready for implementation label Sep 9, 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
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants