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

Function unwrap_certainly_null_expr

datafusion/expr/src/expr_schema.rs:746–753  ·  view source on GitHub ↗

Returns the innermost [Expr] that is provably null if `expr` is null.

(expr: &Expr)

Source from the content-addressed store, hash-verified

744
745/// Returns the innermost [Expr] that is provably null if `expr` is null.
746fn unwrap_certainly_null_expr(expr: &Expr) -> &Expr {
747 match expr {
748 Expr::Not(e) => unwrap_certainly_null_expr(e),
749 Expr::Negative(e) => unwrap_certainly_null_expr(e),
750 Expr::Cast(e) => unwrap_certainly_null_expr(e.expr.as_ref()),
751 _ => expr,
752 }
753}
754
755/// Cast subquery in InSubquery/ScalarSubquery to a given type.
756///

Callers 1

nullableMethod · 0.85

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…