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): incorrect is_first_distinct for boolean arrays of length >= 64 #11527

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Oct 5, 2023

fixes #11530

is_first_distinct goes through a fast path for boolean arrays whose lengths are >=64, and it currently calculates index offsets from the wrong side (leading bits instead of trailing bits).

@nameexhaustion nameexhaustion marked this pull request as ready for review October 5, 2023 09:22
@ritchie46
Copy link
Member

Thanks for the fix!

@ritchie46 ritchie46 merged commit db45f5d into pola-rs:main Oct 5, 2023
25 checks passed
@nameexhaustion nameexhaustion deleted the fix-bool-first branch October 5, 2023 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incorrect is_first_distinct for boolean arrays of length >= 64
2 participants