Commit Graph

9 Commits

Author SHA1 Message Date
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
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
Matt Dannenberg
dd8121057d SERVER-6425 remove literal from aggro 2012-08-02 17:47:59 -04:00
Mathias Stearn
ec18db9868 Rewrite ExpressionObject
The main difference between this version and the old is that the following
three $pipelines will produce the same output (SERVER-6468):

{'a.b': 1} // classic inclusion
{a: {b: 1} // nested inclusion
{'a.b': '$a.b'} // dotted FieldPathExpression
{a: {b: '$a.b'} // nested FieldPathExpression

Additionally support for exclusion of fields other than _id has been
removed for 2.2 (SERVER-6361)

Other related bugs:
SERVER-6177 better error for {a:1, 'a.b':1}
SERVER-6181 support for computed _id
SERVER-6184 support {'a.b': 1, a:{c:1}} in either order

Remaining TODOs:
Re-enable the isSimple() method
See if this can be used more directly by $group to support nested fields (SERVER-6198)

Disabled test for SERVER-5369 because it depends on ability to exclude
arbitrary fields.
2012-07-20 17:54:22 -04:00
Mathias Stearn
19e404b191 Re-enable sharded aggregation test 2012-07-10 17:14:58 -04:00
U-tellus\cwestin
d0790729c4 SERVER-4504; minor changes from Mathias' code review 2012-05-31 14:21:39 -04:00
U-tellus\cwestin
fcf121792a SERVER-4504 big explain: fix recursive lock issue 2012-05-31 14:21:37 -04:00
U-tellus\cwestin
13a9b34ae4 disable explain test 2012-05-22 07:49:02 -07:00
U-tellus\cwestin
54f86fa31d SERVER-4504 minor changes from code review 2012-05-21 12:40:39 -07:00