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(rust): Fix inconsistency between code and comment #21294

Merged
merged 3 commits into from
Feb 17, 2025

Conversation

YichiZhang0613
Copy link
Contributor

@YichiZhang0613 YichiZhang0613 commented Feb 17, 2025

This pr fixes problems in #21228

@github-actions github-actions bot added fix Bug fix rust Related to Rust Polars labels Feb 17, 2025
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.82%. Comparing base (5e51218) to head (2224b42).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21294      +/-   ##
==========================================
- Coverage   79.82%   79.82%   -0.01%     
==========================================
  Files        1596     1596              
  Lines      228565   228561       -4     
  Branches     2608     2608              
==========================================
- Hits       182462   182455       -7     
- Misses      45507    45510       +3     
  Partials      596      596              

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

@@ -22,6 +22,7 @@ impl<'a> GrowableFixedSizeBinary<'a> {
mut use_validity: bool,
capacity: usize,
) -> Self {
assert!(!arrays.is_empty());
Copy link
Member

Choose a reason for hiding this comment

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

It already panics because of access on L32.

@@ -24,6 +24,7 @@ impl<'a, T: NativeType> GrowablePrimitive<'a, T> {
mut use_validity: bool,
capacity: usize,
) -> Self {
assert!(!arrays.is_empty());
Copy link
Member

Choose a reason for hiding this comment

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

It already panics because of access on L34

@ritchie46 ritchie46 merged commit ab1f3c4 into pola-rs:main Feb 17, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants