From 67b107090191633780baa44c36518cebcd0d50f4 Mon Sep 17 00:00:00 2001 From: berkaysynnada Date: Thu, 16 May 2024 17:34:14 +0300 Subject: [PATCH] Update optimize_projections.rs --- datafusion/core/src/physical_optimizer/optimize_projections.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/core/src/physical_optimizer/optimize_projections.rs b/datafusion/core/src/physical_optimizer/optimize_projections.rs index 2954eacc16a32..9c8ff1f2f4b75 100644 --- a/datafusion/core/src/physical_optimizer/optimize_projections.rs +++ b/datafusion/core/src/physical_optimizer/optimize_projections.rs @@ -2092,7 +2092,7 @@ impl ProjectionOptimizer { ) { if window_exprs.iter().any(|expr| { expr.clone() - .update_expression(&ExprMapping::new(IndexMap::new())) + .update_expression(&ExprMapping::new(self.schema_mapping.clone())) .is_none() }) { self.children_nodes[0].required_columns = self