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

Function is_compare_op

datafusion/pruning/src/pruning_predicate.rs:1195–1209  ·  view source on GitHub ↗
(op: Operator)

Source from the content-addressed store, hash-verified

1193}
1194
1195fn is_compare_op(op: Operator) -> bool {
1196 matches!(
1197 op,
1198 Operator::Eq
1199 | Operator::NotEq
1200 | Operator::Lt
1201 | Operator::LtEq
1202 | Operator::Gt
1203 | Operator::GtEq
1204 | Operator::IsDistinctFrom
1205 | Operator::IsNotDistinctFrom
1206 | Operator::LikeMatch
1207 | Operator::NotLikeMatch
1208 )
1209}
1210
1211// The pruning logic is based on the comparing the min/max bounds.
1212// Must make sure the two type has order.

Callers 1

rewrite_expr_to_prunableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…