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 RunEndArray filter #1380

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Fix RunEndArray filter #1380

merged 1 commit into from
Nov 20, 2024

Conversation

robert3005
Copy link
Member

@robert3005 robert3005 commented Nov 20, 2024

fix #1368

@@ -160,6 +160,8 @@ impl FilterFn for RunEndArray {
// Code adapted from apache arrow-rs https://github.com/apache/arrow-rs/blob/b1f5c250ebb6c1252b4e7c51d15b8e77f4c361fa/arrow-select/src/filter.rs#L425
fn filter_run_ends<R: NativePType + AddAssign + From<bool> + AsPrimitive<u64>>(
run_ends: &[R],
Copy link
Member Author

Choose a reason for hiding this comment

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

I tried converting this to impl Iterator<Item = usize> but still need to pass the length and would needlesly widen type of the ends.

Copy link
Contributor

Choose a reason for hiding this comment

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

You can do impl Iterator + ExactSizeIterator

Copy link
Member Author

Choose a reason for hiding this comment

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

Oooo, let me try that

@robert3005 robert3005 enabled auto-merge (squash) November 20, 2024 01:14
@robert3005 robert3005 merged commit 5b4679d into develop Nov 20, 2024
11 checks passed
@robert3005 robert3005 deleted the rk/runendfilter branch November 20, 2024 02:25
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.

RunEnd filter produces wrong result
3 participants