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, python): re-sort buffer when update window swap the whole buffer #10696

Merged
merged 1 commit into from Aug 23, 2023

Conversation

reswqa
Copy link
Collaborator

@reswqa reswqa commented Aug 23, 2023

This fixes #10695.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Aug 23, 2023
@@ -30,7 +30,8 @@ impl<'a, T: NativeType + IsFloat + PartialOrd> SortedBuf<'a, T> {
if start >= self.last_end {
self.buf.clear();
let new_window = self.slice.get_unchecked(start..end);
self.buf.extend_from_slice(new_window)
self.buf.extend_from_slice(new_window);
sort_buf(&mut self.buf);
Copy link
Member

Choose a reason for hiding this comment

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

That is quite an essential part of the SortedWindow yes. Good fix. 👍

@ritchie46 ritchie46 merged commit 18736fa into pola-rs:main Aug 23, 2023
23 of 24 checks passed
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.

Panic when performing groupby_dynamic
2 participants