Helper function to extract a BinaryExpr from a PhysicalExpr
(expr: &Arc<dyn PhysicalExpr>)
| 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( |
no outgoing calls
searching dependent graphs…