yurmix commented on issue #6320: Moving Average query type URL: https://github.com/apache/incubator-druid/issues/6320#issuecomment-449163639 @b-slim > In general Druid users use a column called count in conjunction with the XXXSum column to derive AVG when Rolling up of rows occurs, does your feature take that into consideration? I'm not sure if I understand correctly, I'll try to answer though. With Aggregators and Post-Aggregators, one could count and sum values using two aggregators, then combine them in a post aggregator to get the average. (Not a moving average but a simple arithmetic average). Averager calculation is done completly separately from Aggregators code (although aggregator is an input to the averager computation). An example for an Averager calculation: [`DoubleMeanAverager@computeResult()`](https://github.com/apache/incubator-druid/pull/6430/files#diff-08f4829cb1dcb4ea5ebee703daa17189R32).
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
