alamb opened a new issue, #14855: URL: https://github.com/apache/datafusion/issues/14855
### Describe the bug @jonahgao noticed this in https://github.com/apache/datafusion/pull/14824 This query works in DataFusion 44 and 45: ```sql select count(), count(*); ``` However, it does not work on main (what would become DataFusion 46) ``` DataFusion CLI v45.0.0 > select count(), count(*); Error during planning: Projections require unique expression names but the expression "count(*)" at position 0 and "count(*)" at position 1 have the same name. Consider aliasing ("AS") one of them. > ``` ### To Reproduce _No response_ ### Expected behavior The query should produce the same results as in datafusion 44 and 45 ```shell andrewlamb@Andrews-MacBook-Pro-2:~/Software/datafusion$ ~/Downloads/datafusion-cli-44 DataFusion CLI v44.0.0 > select count(), count(*); +---------+----------+ | count() | count(*) | +---------+----------+ | 1 | 1 | +---------+----------+ 1 row(s) fetched. Elapsed 0.013 seconds. > \q andrewlamb@Andrews-MacBook-Pro-2:~/Software/datafusion$ ~/Downloads/datafusion-cli-45 DataFusion CLI v45.0.0 > select count(), count(*); +---------+----------+ | count() | count(*) | +---------+----------+ | 1 | 1 | +---------+----------+ 1 row(s) fetched. Elapsed 0.013 seconds. ``` ### Additional context It is likely this was introduced by - https://github.com/apache/datafusion/pull/14689 There is more discussion on - https://github.com/apache/datafusion/pull/14824 -- 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.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