summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/accumulator_avg.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-24879 Add $mergeObjects aggregation expressionnzolnierzmdb2017-03-311-1/+1
|
* SERVER-25535 Remove injectExpressionContext().Charlie Swanson2016-12-161-3/+5
| | | | | | | | | | | | | | | These methods were formally used to propagate a new ExpressionContext to stages, accumulators, or expressions which potentially needed to comparisons. Originally, this was necessary since Pipeline parsing happened outside of the collection lock and thus could not determine if there was a default collation on the collection. This meant that the collation could change after parsing and any operators that might compare strings would need to know about it. We have since moved parsing within the lock, so the collation can be known at parse time and the ExpressionContext should not change. This patch requires an ExpressionContext at construction time, and disallows changing the collation on an ExpressionContext.
* SERVER-24153 Add/refactor create() methods for DocumentSourcesCharlie Swanson2016-09-071-0/+2
| | | | | This will make it easier to add tests that each DocumentSource correctly handles a paused input.
* SERVER-19735: Add support for decimal type in aggregationr3.3.8Geert Bosch2016-06-061-21/+59
|
* SERVER-9625 Makes $sum, $avg, $min, $max, $stdDevPop, and $stdDevSamp ↵James Cohan2015-08-111-0/+2
| | | | accumulators available as expressions
* SERVER-14691: $avg accumulator should return null if it receives no numeric ↵Charlie Swanson2015-07-151-1/+1
| | | | inputs
* SERVER-19105 Add macro to register Accumulators, move REGISTER_EXPRESSION to ↵Charlie Swanson2015-07-131-4/+6
| | | | header
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-45/+39
|
* SERVER-13256 Remove pch.hAndrew Morrow2015-01-151-3/+0
|
* SERVER-13256 Remove intrusive_ptr from pch.hAndrew Morrow2015-01-051-0/+2
|
* SERVER-13256 Prohibit new uses of pch.hAndrew Morrow2015-01-051-0/+3
|
* Clean up AccumulatorAvgMathias Stearn2013-10-211-22/+19
| | | | | | Major change is not inheriting from AccumulatorSum Prep for SERVER-5044 $stdDev accumulator
* SERVER-8886 Add OpenSSL exception to files in src/mongo/dbIan Whalen2013-09-061-0/+12
|
* Clean up #includes to conform with coding standardDan Pasette2013-07-241-5/+5
|
* SERVER-9444 Remove context-awareness from Accumulators to prep $group for SorterMathias Stearn2013-07-101-24/+27
|
* Accumulators are not Expressions so they shouldn't deriveMathias Stearn2013-06-181-8/+5
| | | | | | There may be a place for a common parent of "tree-like" things, but Expression is not the correct base. This commit keeps the public API of accumulators the same so consumers don't need to be modified.
* removes legacy Value "createType" functionsMatt Dannenberg2013-06-181-4/+4
| | | | uses constructor instead
* Adjusted file mod's.Alberto Lerner2012-12-181-0/+0
|
* Rewrite Document and Value classesMathias Stearn2012-11-161-17/+15
|
* SERVER-6275 SERVER-6197 use double for $avgMatt Dannenberg2012-07-271-44/+8
| | | | | also do not count non-numeric types in $avg also part of SERVER-6166 up convert from int to long on $sum
* SERVER-6179 support multiple $group in sharded aggMatt Dannenberg2012-07-201-1/+1
|
* Convert to unix line endingsMathias Stearn2012-06-291-123/+123
| | | | Sorry about the huge diff, but it is just line-ending changes so you can skip it
* replace assert with verify SERVER-1259Eliot Horowitz2012-03-261-2/+2
|
* fixed emacs to remove tabs from files before writing; removed tabsU-tellus\cwestin2012-01-101-75/+75
|
* bulk move of code to src/ SERVER-4551Eliot Horowitz2011-12-241-0/+123