alamb commented on code in PR #8951:
URL: https://github.com/apache/arrow-rs/pull/8951#discussion_r2701012658
##########
arrow-select/src/filter.rs:
##########
@@ -193,6 +197,21 @@ pub fn filter(values: &dyn Array, predicate:
&BooleanArray) -> Result<ArrayRef,
filter_array(values, &predicate)
}
+/// Determines if calling [FilterBuilder::optimize] is beneficial for the
+/// given [`RecordBatch`].
+pub fn is_optimize_beneficial_record_batch(record_batch: &RecordBatch) -> bool
{
Review Comment:
I recommend putting this as a method on `FilterBuilder` so it is easier to
discover
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]