Skip to main content

evaluate_physical_mask

Function evaluate_physical_mask 

Source
pub(crate) fn evaluate_physical_mask(
    batch: &RecordBatch,
    filter_ctx: &PhysicalFilterContext,
    filter: &Arc<dyn PhysicalExpr>,
    file_path: &str,
) -> Result<BooleanBuffer>
Expand description

Evaluates a physical prefilter expression against the single filter column of batch.

NULL results count as filtered out. This is safe because the published predicate is already a necessary condition for the enclosing operation; legacy consumer-side NULL guards may admit additional rows that the operation does not need. No IS NULL guard is added here because the producer owns the null semantics of its expression.