alamb commented on code in PR #15044:
URL: https://github.com/apache/datafusion/pull/15044#discussion_r1983209738
##########
datafusion/physical-expr/src/aggregate.rs:
##########
@@ -91,6 +91,9 @@ impl AggregateExprBuilder {
}
}
+ /// Constructs an `AggregateFunctionExpr` from the builder
+ ///
+ /// Note that an [`Self::alias`] must be provided before calling this
method.
Review Comment:
It would also be nice to update the error message below
```rust
None => return internal_err!("alias should provided"),
```
Perhaps to something like
```rust
None => return internal_err!("AggregateExprBuilder::alias must
be provided prior to build"),
```
--
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]