build_predicate_expression

Function build_predicate_expression 

Source
fn build_predicate_expression(
    expr: &Arc<dyn PhysicalExpr>,
    schema: &SchemaRef,
    required_columns: &mut RequiredColumns,
    unhandled_hook: &Arc<dyn UnhandledPredicateHook>,
) -> Arc<dyn PhysicalExpr>
Expand description

Translate logical filter expression into pruning predicate expression that will evaluate to FALSE if it can be determined no rows between the min/max values could pass the predicates.

Any predicates that can not be translated will be passed to unhandled_hook.

Returns the pruning predicate as an PhysicalExpr

Notice: Does not handle [phys_expr::InListExpr] greater than 20, which will fall back to calling unhandled_hook