jonahgao commented on PR #11897:
URL: https://github.com/apache/datafusion/pull/11897#issuecomment-2283248937

   > So this PR actually fixed two bugs, (1. global group_by + having false. 2. 
global group_by + having true)
   
   The following case seems to be caused by `EliminateGroupByConstant`. I think 
we can create a separate fix for it later.
   
   ```sh
   DataFusion CLI v41.0.0
   > SELECT AVG(v1) FROM t1 GROUP BY false;
   +------------+
   | avg(t1.v1) |
   +------------+
   |            |
   +------------+
   1 row(s) fetched.
   ```
   In DuckDB:
   ```sh
   D SELECT AVG(v1) FROM t1 GROUP BY false;
   ┌─────────┐
   │ avg(v1) │
   │ double  │
   ├─────────┤
   │ 0 rows  │
   └─────────┘
   ```


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

Reply via email to