Dandandan opened a new issue, #8450:
URL: https://github.com/apache/arrow-datafusion/issues/8450

   ### Describe the bug
   
   Queries with a nested count (`select count(*) from (select count(*) from 
(select 1));`)
   
   fail with
   
   ```
   Optimizer rule 'optimize_projections' failed
   caused by
   Error during planning: Aggregate requires at least one grouping or aggregate 
expression
   ```
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   Should return the number of rows (1)
   
   ### Additional context
   
   _No response_


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

Reply via email to