MCPcopy Create free account
hub / github.com/apache/datafusion / evaluate_bounds

Function evaluate_bounds

datafusion/expr/src/predicate_bounds.rs:49–59  ·  view source on GitHub ↗

Computes the output interval for the given boolean expression based on statically available information. # Arguments `predicate` - The boolean expression to analyze `is_null` - A callback function that provides additional nullability information for expressions. When called with an expression, it should return: - `Some(true)` if the expression is known to evaluate to NULL - `Some(false)` if the

(
    predicate: &Expr,
    certainly_null_expr: Option<&Expr>,
    input_schema: &dyn ExprSchema,
)

Source from the content-addressed store, hash-verified

47/// predicate can evaluate to.
48///
49pub(super) fn evaluate_bounds(
50 predicate: &Expr,
51 certainly_null_expr: Option<&Expr>,
52 input_schema: &dyn ExprSchema,
53) -> Result<NullableInterval> {
54 let evaluator = PredicateBoundsEvaluator {
55 input_schema,
56 certainly_null_expr,
57 };
58 evaluator.evaluate_bounds(predicate)
59}
60
61struct PredicateBoundsEvaluator<'a> {
62 input_schema: &'a dyn ExprSchema,

Callers 2

eval_boundsFunction · 0.85
nullableMethod · 0.85

Calls 1

evaluate_boundsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…