[ 
https://issues.apache.org/jira/browse/DRILL-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13678547#comment-13678547
 ] 

Ted Dunning commented on DRILL-67:
----------------------------------

For averages and especially standard deviations, Welford's method should 
generally be used:

http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Online_algorithm

For means alone, it is somewhat slower.  For variance, it is dramatically more 
accurate.
                
> Add Min, Max, avg and others Aggregated function
> ------------------------------------------------
>
>                 Key: DRILL-67
>                 URL: https://issues.apache.org/jira/browse/DRILL-67
>             Project: Apache Drill
>          Issue Type: Improvement
>            Reporter: Alexandre Beche
>            Priority: Trivial
>              Labels: patch
>         Attachments: DRILL-67.patch.txt, DRILL-70-1.patch.txt, 
> DRILL-70-feedback.diff, DRILL-70.patch.txt
>
>
> This proposed improvement is to add the MIN(), MAX() and AVG() function to 
> the list of the aggregated function.
> SumAggregator will be used as an example.
> Others function could be added

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to