summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/accumulator_sum.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-21/+23
|
* 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-27/+78
|
* SERVER-9625 Makes $sum, $avg, $min, $max, $stdDevPop, and $stdDevSamp ↵James Cohan2015-08-111-0/+2
| | | | accumulators available as expressions
* 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-52/+43
|
* 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-4/+0
| | | | | | 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-3/+3
|
* SERVER-9444 Remove context-awareness from Accumulators to prep $group for SorterMathias Stearn2013-07-101-12/+19
|
* Accumulators are not Expressions so they shouldn't deriveMathias Stearn2013-06-181-11/+6
| | | | | | 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-2/+2
| | | | uses constructor instead
* Adjusted file mod's.Alberto Lerner2012-12-181-0/+0
|
* Improve aggregation handling of nullish Values - part 2Mathias Stearn2012-12-141-7/+5
| | | | | | | | | | | | Changes: * Nullish values in math expressions (but not accumulators) result in NULL. * $divide or $mod by 0 now uasserts. * uassert in math expressions if inputs are neither nullish nor numeric. * $group fills missing accumulators with NULL rather than Undefined. Related Tickets: SERVER-7932 Fix handling of nullish Values in math expressions SERVER-6144 $divide by 0 makes field disappear
* Normalize handling of Undefined vs EOO/missing in aggMathias Stearn2012-12-101-1/+1
| | | | | | | Related tickets: SERVER-6571 replace use of Undefined as missing with EOO SERVER-6471 ignore nullish values in $min and $max accumulators SERVER-6144 divide by zero makes field disappear (this solution isn't final)
* Rewrite Document and Value classesMathias Stearn2012-11-161-9/+8
|
* SERVER-6275 SERVER-6197 use double for $avgMatt Dannenberg2012-07-271-14/+29
| | | | | also do not count non-numeric types in $avg also part of SERVER-6166 up convert from int to long on $sum
* Convert to unix line endingsMathias Stearn2012-06-291-74/+74
| | | | 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-1/+1
|
* fixed emacs to remove tabs from files before writing; removed tabsU-tellus\cwestin2012-01-101-5/+5
|
* bulk move of code to src/ SERVER-4551Eliot Horowitz2011-12-241-0/+74