lewiszlw commented on issue #11707:
URL: https://github.com/apache/datafusion/issues/11707#issuecomment-2264772430

   For example `select count(1) as count from t`, the generated name is 
`count(1)`, we need be able to store alias. 
   `AggregateExec`'s `aggr_expr` field doesn't support alias, so we have to set 
alias as the name of aggr expr.
   ```
   pub struct AggregateExec {
       /// Aggregate expressions
       aggr_expr: Vec<Arc<dyn AggregateExpr>>,
       ...
   }
   
   pub struct ProjectionExec {
       /// The projection expressions stored as tuples of (expression, output 
column name)
       pub(crate) expr: Vec<(Arc<dyn PhysicalExpr>, String)>,
       ...
   }
   ```
   


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to