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

Function expr_contains

datafusion/optimizer/src/simplify_expressions/utils.rs:82–84  ·  view source on GitHub ↗

check volatile calls and return if expr contains needle

(expr: &Expr, needle: &Expr, search_op: Operator)

Source from the content-addressed store, hash-verified

80
81/// check volatile calls and return if expr contains needle
82pub fn expr_contains(expr: &Expr, needle: &Expr, search_op: Operator) -> bool {
83 expr_contains_inner(expr, needle, search_op) && !needle.is_volatile()
84}
85
86/// Deletes all 'needles' or remains one 'needle' that are found in a chain of xor
87/// expressions. Such as: A ^ (A ^ (B ^ A))

Callers 1

f_upMethod · 0.85

Calls 2

expr_contains_innerFunction · 0.85
is_volatileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…