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

Function physical_exprs_equal

datafusion/physical-expr/src/physical_expr.rs:65–70  ·  view source on GitHub ↗

Checks whether the given physical expression slices are equal.

(
    lhs: &[Arc<dyn PhysicalExpr>],
    rhs: &[Arc<dyn PhysicalExpr>],
)

Source from the content-addressed store, hash-verified

63
64/// Checks whether the given physical expression slices are equal.
65pub fn physical_exprs_equal(
66 lhs: &[Arc<dyn PhysicalExpr>],
67 rhs: &[Arc<dyn PhysicalExpr>],
68) -> bool {
69 lhs.len() == rhs.len() && izip!(lhs, rhs).all(|(lhs, rhs)| lhs.eq(rhs))
70}
71
72/// Checks whether the given physical expression slices are equal in the sense
73/// of bags (multi-sets), disregarding their orderings.

Callers 5

satisfactionMethod · 0.85
eqMethod · 0.85
can_combineFunction · 0.85
reorder_aggregate_keysFunction · 0.85
try_reorderFunction · 0.85

Calls 3

allMethod · 0.80
lenMethod · 0.45
eqMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…