II
11/16/2021, 5:30 PMdistinctCount aggregation function to count under different conditions
select distinctCount(case when condition1 then colA else null end) as condition1Count,
distinctCount(case when condition2 then colA else null end) as condition2Count,
distinctCount(case when condition3 then colA else null end) as condition3Count
from tableA
colA is type int or String.
but looks like it’s not supported in pinot cause null is not supported in the selection query
Will there be a future support for this.Xiang Fu
II
11/16/2021, 5:51 PMnull to 'null'?
I tried that by then 'null' is counted as one distinct valueXiang Fu
II
11/16/2021, 6:48 PM