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

Filter struct arrays #767

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Filter struct arrays #767

merged 3 commits into from
Sep 9, 2024

Conversation

AdamGS
Copy link
Contributor

@AdamGS AdamGS commented Sep 9, 2024

No description provided.

@AdamGS AdamGS requested a review from gatesn September 9, 2024 17:54
@AdamGS AdamGS merged commit 90e0beb into develop Sep 9, 2024
4 checks passed
@AdamGS AdamGS deleted the adamg/filter-struct branch September 9, 2024 18:19
.map(|field| filter(&field, predicate))
.try_collect()?;

let predicate_true_count = predicate
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth doing this only if you have no fields? fields.first().map(|a| a.len()).or_else(...)

Copy link
Member

Choose a reason for hiding this comment

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

yes, I noticed this is what Arrow does as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought I pushed that, I'll add that to another PR

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.

3 participants