NoahKusaba opened a new issue, #2962: URL: https://github.com/apache/datafusion-ballista/issues/2962
**Describe the bug** An aggregate with only the empty grouping set returns no rows, with both the static and the adaptive planner. It should return one row, even over empty input. **To Reproduce** Standalone Ballista on `main` (446fa54c9), default settings: ```sql SELECT COUNT(*) FROM (VALUES (1), (2)) t(v) GROUP BY GROUPING SETS (()); -- returns no rows; expected 2 SELECT COUNT(*) FROM (VALUES (1), (2)) t(v) WHERE false GROUP BY GROUPING SETS (()); -- returns no rows; expected 0 ``` **Expected behavior** One row: `2` for the first query and `0` for the second, as DataFusion returns. **Additional context** Found by running DataFusion's sqllogictest files on Ballista (#2945): `grouping.slt` 359, 365, 371, 378, 384, 390. -- 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]
