findepi commented on issue #11303: URL: https://github.com/apache/datafusion/issues/11303#issuecomment-2211795107
Related to this, we could maybe support zero-arg `count()`. For 2+ args for count, I as a user would prefer to used filtered aggregation. It's then obvious whether I am counting rows when all args are not null, or when at least one is not null: ``` count() FILTER (WHERE a IS NOT NULL ( AND | OR ) b IS NOT NULL) ``` (definitely more verbose than `count(a, b)`, but is `count(a, b)` established & consistent across query engines?) -- 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]
