alamb commented on PR #11812:
URL: https://github.com/apache/datafusion/pull/11812#issuecomment-2276136064

   > I think there is still a problem with COUNT(NULL) being `null` and not 
zero but I will file a follow on ticket for that
   
   Actually, I misread the test and after this PR `count(NULL)` gets the right 
answer (`0`) with datafusion:
   
   ```sql
   DataFusion CLI v40.0.0
   > select count(NULL);
   +-------------+
   | count(NULL) |
   +-------------+
   | 0           |
   +-------------+
   1 row(s) fetched.
   Elapsed 0.022 seconds.
   
   > select count(NULL), min(NULL);
   +-------------+-----------+
   | count(NULL) | min(NULL) |
   +-------------+-----------+
   | 0           |           |
   +-------------+-----------+
   1 row(s) fetched.
   Elapsed 0.006 seconds.
   ```


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