• Vicențiu Ciorbaru's avatar
    Implemented avg() window function. · 21651541
    Vicențiu Ciorbaru authored
    It is based on the sum() function, thus much of the logic is shared.
    
    Considering that there are 2 counters stored within the function, one
    that handles the null value, while the other that handles the divisor
    for the avg computation, it is possible to remove the counter from the
    Item_sum_avg. I have not removed it in this patch as we may choose to
    refactor the whole code into a separate class.
    This remains to be dicussed.
    21651541
item_sum.cc 93.6 KB