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

Function as_binary

datafusion/physical-expr/src/simplifier/mod.rs:127–130  ·  view source on GitHub ↗

Helper function to extract a BinaryExpr from a PhysicalExpr

(expr: &Arc<dyn PhysicalExpr>)

Source from the content-addressed store, hash-verified

125
126 /// Helper function to extract a BinaryExpr from a PhysicalExpr
127 fn as_binary(expr: &Arc<dyn PhysicalExpr>) -> &BinaryExpr {
128 expr.downcast_ref::<BinaryExpr>()
129 .unwrap_or_else(|| panic!("Expected BinaryExpr, got: {expr}"))
130 }
131
132 /// Assert that simplifying `input` produces `expected`
133 fn assert_not_simplify(

Callers 3

test_simplifyFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_simplifyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…