Skip to content

Commit 4a5d130

Browse files
authored
fix: remove unnecessary as_any() to fix compilation error (#21693)
Merging in #21031 broke main due to #21573 landing before it
1 parent 2f0ca3d commit 4a5d130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/proto/src/physical_plan/to_proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ pub fn serialize_physical_expr_with_converter(
312312
let mut operand_refs: Vec<&Arc<dyn PhysicalExpr>> = vec![expr.right()];
313313
let mut current_expr: &BinaryExpr = expr;
314314
loop {
315-
match current_expr.left().as_any().downcast_ref::<BinaryExpr>() {
315+
match current_expr.left().downcast_ref::<BinaryExpr>() {
316316
Some(bin) if bin.op() == op => {
317317
operand_refs.push(bin.right());
318318
current_expr = bin;

0 commit comments

Comments
 (0)