Commit Graph

14 Commits

Author SHA1 Message Date
Mark Benvenuto
6dcdd23dd3 SERVER-23971 Clang-Format code 2016-05-28 17:55:12 -04:00
Jonathan Abrahams
4ae691e8ed SERVER-22468 Format JS code with approved style in jstests/ 2016-03-09 12:18:14 -05:00
Benjamin Murphy
dd1fb77f48 SERVER-22402 DocumentSourceMatch now includes dependency tracking. 2016-02-26 10:56:01 -05:00
Mike Grundy
bca7050e6f SERVER-22341 fix jslint errors in jstests/aggregation with eslint --fix 2016-02-05 15:00:49 -05:00
Mathias Stearn
f58fa5f78a Make BSONObj::woCompare a total ordering
Changes:
* Date and Timestamp are now distinct with all Dates before all Timestamps.
* Numeric comparisons now correctly handle Doubles and Long > 2**53.
* CodeWScope doesn't strcmp BSONObjs or strings which may contain NULs.

There should be no changes in any of the cases where woCompare defined a
correct total ordering before. The new behavior matches the ordering defined
by KeyString.

Related tickets:
* SERVER-3304 Error comparing Date and Timestamp
* SERVER-3719 Total ordering over Longs and Doubles
* SERVER-7804 CodeWScope comparisons are broken
* SERVER-16632 Change WiredTiger index key format

Changes to the comparison function for aggregation will be handled separately
as SERVER-16708.
2015-01-07 11:56:33 -05:00
Dan Pasette
a56fff30fb SERVER-12409 db.coll.remove() shell helper requires a query predicate 2014-02-05 18:07:02 -05:00
Benety Goh
91ee7a4219 SERVER-1160 removed invalid {$in: [undefined]} test 2013-12-16 15:50:44 -05:00
Mathias Stearn
061a086641 SERVER-10165 aggregate() shell helper now returns a cursor
The actual change is in src/mongo/shell/collection.js with the remaining changes
to adjust tests to the new api.

The "ideal" arguments are now an array of pipeline ops and an optional object
with extra top-level options for the command (such as {explain: true}. For
backwards compatibility, we still support the varargs style where each argument
is a pipeline stage, but there is no way to specify extra parameters in this
mode.
2013-10-08 17:35:02 -04:00
Eliot Horowitz
a90e55ca07 SERVER-6400: change error codes agg is expecting 2013-05-20 00:28:32 -04:00
Mathias Stearn
68f6dcd2c3 SERVER-6649 have agg helper throw exceptions and fix tests accordingly
Most of this was done by Samantha Ritter. Thanks!
2012-12-18 15:34:56 -05:00
Mathias Stearn
fefb4334af Add at least minimal support for all types to agg
Minimal support means conversion to/from BSON, comparison and hashing.
This means that they can be passed through the pipeline correctly, used
in $sort, and used in _id expressions in $group.

SERVER-4608 - Binary pass through
SERVER-5718 - Code/CodeWScope pass through
SERVER-6470 - Don't convert Regex to String
SERVER-7185 - Symbol support
2012-12-10 18:54:04 -05:00
Aaron
258fb29b0d SERVER-6650 label test cases. 2012-08-24 11:16:27 -07:00
Aaron
b69e1c687e SERVER-6530 Enable test. 2012-08-24 11:16:27 -07:00
Aaron
2d61bc881c Add $match functional tests. 2012-07-31 20:09:16 -07:00