-
Notifications
You must be signed in to change notification settings - Fork 955
Add BatchCoalescer::push_filtered_batch
and docs
#7652
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
Conversation
🤖 |
// Add the filtered batch to the coalescer | ||
coalescer.push_batch(filtered_batch).unwrap(); | ||
coalescer | ||
.push_batch_with_filter(batch.clone(), filter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the point of the PR -- to add this API to prepare for the coalescer to build it up incrementally
🤖: Benchmark completed Details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thank you for the review @Dandandan |
Which issue does this PR close?
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax.
Rationale for this change
In order to coalesce the result of applying a filter currently requires first copying the results into an intermediate array (calling
filter
).My plan is to remove this extra copy by building the final array up directly incrementally
To do to so, there needs to be an API that can take the original data and the filter
What changes are included in this PR?
BatchCoalescer::push_filtered_batch
and docsAre there any user-facing changes?
New API