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: Don't null on oob in list.get for column index #17276

Merged
merged 3 commits into from
Jun 29, 2024

Conversation

mcrumiller
Copy link
Contributor

@mcrumiller mcrumiller commented Jun 28, 2024

Followup to #17262, closes #17252. Fixes the column idx case.

Added more test coverage.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jun 28, 2024
Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.85%. Comparing base (758d210) to head (1ff9b6d).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17276      +/-   ##
==========================================
- Coverage   80.89%   80.85%   -0.05%     
==========================================
  Files        1470     1471       +1     
  Lines      192689   192855     +166     
  Branches     2750     2750              
==========================================
+ Hits       155876   155925      +49     
- Misses      36305    36422     +117     
  Partials      508      508              

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

@mcrumiller mcrumiller marked this pull request as ready for review June 28, 2024 20:55
_ => Ok(None),
})
.collect::<Result<IdxCa, _>>()?
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ritchie46 there's probably a better way to do this without duplicated code, maybe using something like iter::repeat(true) in place of the validity map, but my grasp of polars iterators is not up to snuff.

Copy link
Member

Choose a reason for hiding this comment

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

I think its fine fo rnow. Thanks!

@stinodego stinodego modified the milestone: 1.0.0 Jun 29, 2024
@ritchie46 ritchie46 merged commit fe55ecd into pola-rs:main Jun 29, 2024
27 checks passed
@mcrumiller mcrumiller deleted the list-null-oob branch June 29, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

pl.Expr.list.get raises error on null values.
3 participants