alamb commented on code in PR #20749:
URL: https://github.com/apache/datafusion/pull/20749#discussion_r2907571484
##########
datafusion/expr/src/logical_plan/plan.rs:
##########
@@ -3490,7 +3490,9 @@ pub struct Aggregate {
pub input: Arc<LogicalPlan>,
/// Grouping expressions
pub group_expr: Vec<Expr>,
- /// Aggregate expressions
+ /// Aggregate expressions.
+ ///
+ /// Note these *must* be either [`Expr::AggregateFunction`] or
[`Expr::Alias`]
Review Comment:
Maybe as a follow on PR -- to be clear this is not a new restriction, rather
it was an undocumented limitation.
I also believe this was the root cause of the issues @zhuqi-lucas was
hitting when he tried it in
- https://github.com/apache/datafusion/pull/15532
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]