gruuya commented on code in PR #8219:
URL: https://github.com/apache/arrow-datafusion/pull/8219#discussion_r1396796987


##########
datafusion/optimizer/src/push_down_projection.rs:
##########
@@ -228,7 +228,7 @@ impl OptimizerRule for PushDownProjection {
                 // Gather all columns needed for expressions in this Aggregate
                 let mut new_aggr_expr = vec![];
                 for e in agg.aggr_expr.iter() {
-                    let column = Column::from(e.display_name()?);
+                    let column = Column::from_name(e.display_name()?);

Review Comment:
   Thanks for resolving this; this was a leftover from my initial attempt to 
address the qualified alias problem (without altering the `Expr::Alias` enum) 
that I forgot to rollback.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to