From 1e87218685f46188da236dd83a27df261b282f48 Mon Sep 17 00:00:00 2001 From: Jefffrey Date: Fri, 17 Apr 2026 19:17:06 +0900 Subject: [PATCH] fix: remove unnecessary `as_any()` to fix compilation error --- datafusion/proto/src/physical_plan/to_proto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/proto/src/physical_plan/to_proto.rs b/datafusion/proto/src/physical_plan/to_proto.rs index 07582cb432ae..f0eb6d27aac3 100644 --- a/datafusion/proto/src/physical_plan/to_proto.rs +++ b/datafusion/proto/src/physical_plan/to_proto.rs @@ -312,7 +312,7 @@ pub fn serialize_physical_expr_with_converter( let mut operand_refs: Vec<&Arc> = vec![expr.right()]; let mut current_expr: &BinaryExpr = expr; loop { - match current_expr.left().as_any().downcast_ref::() { + match current_expr.left().downcast_ref::() { Some(bin) if bin.op() == op => { operand_refs.push(bin.right()); current_expr = bin;