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

Function is_always_true

datafusion/pruning/src/pruning_predicate.rs:697–701  ·  view source on GitHub ↗
(expr: &Arc<dyn PhysicalExpr>)

Source from the content-addressed store, hash-verified

695}
696
697fn is_always_true(expr: &Arc<dyn PhysicalExpr>) -> bool {
698 expr.downcast_ref::<phys_expr::Literal>()
699 .map(|l| matches!(l.value(), ScalarValue::Boolean(Some(true))))
700 .unwrap_or_default()
701}
702
703fn is_always_false(expr: &Arc<dyn PhysicalExpr>) -> bool {
704 expr.downcast_ref::<phys_expr::Literal>()

Callers 2

always_trueMethod · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…