Re: Creating aggregate functions

2017-07-23 Thread Yingyi Bu
Sorry, a typo: AVG: that's the logical function in the logical plan. On Sun, Jul 23, 2017 at 10:29 AM, Yingyi Bu wrote: > >> I see AVG, LOCAL_AVG, INTERMEDIATE_AVG and GLOBAL_AVG. > > AVG: that's the local function in the local plan. > LOCAL_AVG, INTERMEDIATE_AVG and

Re: Creating aggregate functions

2017-07-23 Thread Yingyi Bu
>> I see AVG, LOCAL_AVG, INTERMEDIATE_AVG and GLOBAL_AVG. AVG: that's the local function in the local plan. LOCAL_AVG, INTERMEDIATE_AVG and GLOBAL_AVG: think about distributed computation of average. LOCAL_AVG aggregates the sum/count at the local data source, INTERMEDIATE_AVG aggregates the