jayzhan211 commented on PR #14927:
URL: https://github.com/apache/datafusion/pull/14927#issuecomment-2689800403
```rust
/// Return `self AS name` alias expression
pub fn alias(self, name: impl Into<String>) -> Expr {
Expr::Alias(Alias::new(self, None::<&str>, name.into()))
}
```
Add duplicate name check here didn't help.
https://github.com/apache/datafusion/blob/32224b48ca5f779ed2833f480f69af51c6637408/datafusion/expr/src/logical_plan/builder.rs#L748-L768
We have count(*) (alias) and count(1) (column name) which mismatches in
`missing_cols` in `sort`.
--
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]