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

Method is_logic_operator

datafusion/expr-common/src/operator.rs:241–243  ·  view source on GitHub ↗

Return true if the operator is a logic operator. For example, 'Binary(Binary(a, >, b), AND, Binary(a, <, b + 3))' would be a logical expression.

(&self)

Source from the content-addressed store, hash-verified

239 /// For example, 'Binary(Binary(a, >, b), AND, Binary(a, <, b + 3))' would
240 /// be a logical expression.
241 pub fn is_logic_operator(&self) -> bool {
242 matches!(self, Operator::And | Operator::Or)
243 }
244
245 /// Return the operator where swapping lhs and rhs wouldn't change the result.
246 ///

Callers 1

evaluate_statisticsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected