pub fn filter_record_batch(
    record_batch: &RecordBatch,
    filter: &BooleanArray,
) -> Result<RecordBatch> {
    let filter = build_filter(filter)?;
    let filtered_arrays = record_batch
        .columns()
        .iter()
        .map(|a| filter(a.as_ref()).into())
        .collect();
    RecordBatch::try_new(record_batch.schema().clone(), filtered_arrays)
}
/// Returns a new [RecordBatch] with arrays containing only values matching the filter.
/// WARNING: the nulls of `filter` are ignored and the value on its slot is considered.
/// Therefore, it is considered undefined behavior to pass `filter` with null values.
Returns a new [RecordBatch] with arrays containing only values matching the filter.
WARNING: the nulls of `filter` are ignored and the value on its slot is considered.
Therefore, it is considered undefined behavior to pass `filter` with null values.
Returns a new [ RecordBatch ] with arrays containing only values matching the filter . WARNING : the nulls of ` filter ` are ignored and the value on its slot is considered . Therefore it is considered undefined behavior to pass ` filter ` with null values .
pub fn filter_record_batch(
    record_batch: &RecordBatch,
    filter: &BooleanArray,
) -> Result<RecordBatch> {
    let filter = build_filter(filter)?;
    let filtered_arrays = record_batch
        .columns()
        .iter()
        .map(|a| filter(a.as_ref()).into())
        .collect();
    RecordBatch::try_new(record_batch.schema().clone(), filtered_arrays)
}
pub fn filter_record_batch ( record_batch : & RecordBatch , filter : & BooleanArray , ) -> Result < RecordBatch > { let filter = build_filter ( filter ) ? ; let filtered_arrays = record_batch . columns ( ) . iter ( ) . map ( | a | filter ( a . as_ref ( ) ) . into ( ) ) . collect ( ) ; RecordBatch :: try_new ( record_batch . schema ( ) . clone ( ) , filtered_arrays ) }
Returns a new [RecordBatch] with arrays containing only values matching the filter.
Returns a new [ RecordBatch ] with arrays containing only values matching the filter .
record_batch
&RecordBatch
filter
&BooleanArray
record_batch
&RecordBatch
filter
&BooleanArray