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

Method always_true

datafusion/pruning/src/pruning_predicate.rs:601–603  ·  view source on GitHub ↗

Returns true if this pruning predicate can not prune anything. This happens if the predicate is a literal `true` and literal_guarantees is empty. This can happen when a predicate is simplified to a constant `true`

(&self)

Source from the content-addressed store, hash-verified

599 ///
600 /// This can happen when a predicate is simplified to a constant `true`
601 pub fn always_true(&self) -> bool {
602 is_always_true(&self.predicate_expr) && self.literal_guarantees.is_empty()
603 }
604
605 pub fn required_columns(&self) -> &RequiredColumns {
606 &self.required_columns

Callers 2

newMethod · 0.80
build_pruning_predicateFunction · 0.80

Calls 2

is_always_trueFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected