From 653a48386bc409459c8199505206c300e79118f8 Mon Sep 17 00:00:00 2001 From: waralexrom <108349432+waralexrom@users.noreply.github.com> Date: Mon, 11 Sep 2023 22:17:31 +0300 Subject: [PATCH] fix: Fix error in projection pushdown (#123) --- datafusion/src/optimizer/projection_push_down.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/src/optimizer/projection_push_down.rs b/datafusion/src/optimizer/projection_push_down.rs index 8232f3ffb476..53bde87c1f22 100644 --- a/datafusion/src/optimizer/projection_push_down.rs +++ b/datafusion/src/optimizer/projection_push_down.rs @@ -314,7 +314,7 @@ fn optimize_plan( true, execution_props, )?); - let all_expr = group_expr.iter().chain(aggr_expr.iter()); + let all_expr = group_expr.iter().chain(new_aggr_expr.iter()); let new_schema = DFSchema::new(exprlist_to_fields(all_expr, new_input.schema())?)?;