Open morrySnow opened 3 weeks ago
I want to try 2.1
@cjj2010 This issue cannot be split into smaller tasks for solving. Can you handle the entire issue?
@cjj2010 This issue cannot be split into smaller tasks for solving. Can you handle the entire issue?
Okay, I am willing to handle the entire issue. The business scenario I am currently facing requires this feature very much
@cjj2010 Great! I will assign this issue to you
Search before asking
Description
support distinct in analytic functions: count, sum and avg
Solution
ExtractAndNormalizeWindowExpression
2.1.count(distinct c1) over(partition c2)
tomulti_distinct_count(c1) over(partition c2)
2.2.sum(distinct c1) over(partition c2)
tomulti_distinct_sum(c1) over(partition c2)
2.3.avg(distinct c1) over(partition c2)
tocast(multi_distinct_sum(c1) over(partition c2) as double) / cast(multi_distinct_count(c1) over(partition c2) as double)
Are you willing to submit PR?
Code of Conduct