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: 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