From 7d776822c148354a631fdb67de0672536d948286 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Mon, 15 Apr 2024 16:34:31 -0600 Subject: [PATCH] simplify code --- core/src/execution/datafusion/planner.rs | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/core/src/execution/datafusion/planner.rs b/core/src/execution/datafusion/planner.rs index 90e648fe9..f26c5d190 100644 --- a/core/src/execution/datafusion/planner.rs +++ b/core/src/execution/datafusion/planner.rs @@ -496,22 +496,12 @@ impl PhysicalPlanner { .iter() .map(|then| self.create_expr(then, input_schema.clone())), ) - .try_fold( - Vec::<( - Arc, - Arc, - )>::new(), - |mut acc, (a, b)| { - acc.push((a?, b?)); - Ok::< - Vec<( - Arc, - Arc, - )>, - ExecutionError, - >(acc) - }, - )?; + .try_fold(Vec::new(), |mut acc, (a, b)| { + acc.push((a?, b?)); + Ok::, Arc)>, ExecutionError>( + acc, + ) + })?; let else_phy_expr = match &case_when.else_expr { None => None,