Description
Add aggregation function which returns the number of records satisfying a given condition.
For Presto, count_if function is supported, we can write concisely.
However, Spark does not support yet, we need to write like COUNT(CASE WHEN some_condition THEN 1 END) or SUM(CASE WHEN some_condition THEN 1 END), which looks painful.
Attachments
Issue Links
- links to