build_pruning_predicate

Function build_pruning_predicate 

Source
pub fn build_pruning_predicate(
    predicate: Arc<dyn PhysicalExpr>,
    file_schema: &Arc<Schema>,
    predicate_creation_errors: &Count,
) -> Option<Arc<PruningPredicate>>
Expand description

Build a pruning predicate from an optional predicate expression. If the predicate is None or the predicate cannot be converted to a pruning predicate, return None. If there is an error creating the pruning predicate it is recorded by incrementing the predicate_creation_errors counter.