Commit Graph

44 Commits

Author SHA1 Message Date
Mathias Stearn
a2cf5a59b7 SERVER-11711 Make aggregation/testall.js not depend on document order
Needed to make tests pass with agg on top of new query framework. The order of fields returned by
the new query framework is undefined due to SERVER-11833.
2013-11-26 13:14:59 -05:00
Mathias Stearn
fc3c814a0a SERVER-9444 Make $group use Sorter when results don't fit in memory 2013-07-10 17:17:59 -04:00
Mathias Stearn
c2ff9da39b SERVER-8239 $concat should only support strings 2013-02-07 15:48:20 -05:00
Matt Dannenberg
966fa94895 SERVER-6195 implement $concat for strings in aggro
this also eliminates the problems seen in SERVER-6194

Note: modified by Mathias on 2012/12/17 to use new Doc/Val API
2012-12-18 13:34:05 -05:00
Matt Dannenberg
d3b12c40a9 SERVER-6570 disallow strings in $add in aggro
also started SERVER-6166 (ints overflowing to long in math) by doing the add portion
redo testall.js p20 when SERVER-6195 is done
2012-07-27 14:30:40 -04:00
Mathias Stearn
3e81903a1c Hook up dependency detection to group, unwind, sort, skip, and limit SERVER-4644 2012-07-20 18:11:31 -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
Matt Dannenberg
c5a9bdd97e add sorts to aggro/testall for consistent results 2012-07-09 17:55:41 -04:00
Matt Dannenberg
c54bf4aa6e SERVER-6290 remove $isoDate aggro operation 2012-07-06 13:45:08 -04:00
Matt Dannenberg
f5c6734a9c remove aggro utils.js from aggro tests 2012-07-06 13:45:08 -04:00
Matt Dannenberg
d13d5f4016 SERVER-6165 fix $mod to work with any numerictype 2012-07-03 18:52:38 -04:00
Mathias Stearn
22ec5a0e0f Convert to unix line endings
Sorry about the huge diff, but it is just line-ending changes so you can skip it
2012-06-29 13:41:23 -04:00
U-tellus\cwestin
54f86fa31d SERVER-4504 minor changes from code review 2012-05-21 12:40:39 -07:00
Dan Crosta
507904583c SERVER-4994: load() is relative to the checkout root
this also means we don't have to muddle about with TestData.testPath,
which was shaky on windows anyway due to path separators
2012-02-29 20:24:03 -05:00
U-tellus\cwestin
ddb88d3fcf SERVER-4435 2012-02-21 17:50:46 -08:00
Eliot Horowitz
e45cb61802 fix 32-bit agg test and Date_t 2012-01-31 22:26:34 -05:00
Dan Crosta
75ce6fea68 BUILDBOT-84: make aggregation JS tests load nicely from SCons 2012-01-23 14:05:47 -08:00
U-tellus\cwestin
0082af774a implement expression 2011-11-17 15:27:27 -08:00
U-tellus\cwestin
dbdcf96cc9 SERVER-3396 + unit test 2011-10-11 18:00:19 -07:00
U-tellus\cwestin
a427216162 SERVER-3253, SERVER-3881 2011-09-27 14:52:21 -07:00
U-tellus\cwestin
a37c9dbd3a merge and ; fix tests 2011-09-26 15:41:03 -07:00
U-tellus\cwestin
0d20c508a2 new pipeline operator 2011-09-22 18:43:09 -07:00
U-tellus\cwestin
83ebf01497 re-enable shard pipeline split simulation; disabled ; server-3862: and 2011-09-16 08:00:45 -07:00
U-tellus\cwestin
9dea4e528a remove inappropriate examples 2011-08-17 16:29:05 -07:00
U-tellus\cwestin
ebb47a6f30 matt's final pull req, server-3548 2011-08-08 15:42:05 -07:00
dannenberg
6d122af07f fixes for sort field extraction, strcasecmp mistakes, and sort 2011-07-19 12:43:19 -04:00
dannenberg
8b726a9f3e date changes and sort limit fix 2011-07-13 14:50:20 -04:00
dannenberg
03b975d1ca $sort now expects a document with an entry whose key is key and value is the sort document 2011-07-11 09:44:12 -04:00
dannenberg
d75328d994 strcmp changed to strcasecmp 2011-07-06 18:04:34 -04:00
dannenberg
19390ca47c fixed and updated tests 2011-07-06 14:08:29 -04:00
dannenberg
bfd1bf9393 tests updated to match new function names 2011-07-05 14:59:23 -04:00
dannenberg
98c38bc735 strcmp added 2011-06-28 11:23:22 -04:00
dannenberg
b9afca9db9 $substr added 2011-06-28 10:39:17 -04:00
dannenberg
48e73dce72 tolower added 2011-06-28 09:57:51 -04:00
dannenberg
c95a7e6df4 toupper added tests updated 2011-06-28 09:42:03 -04:00
dannenberg
b09ff8902b merged with aggregation branch 2011-06-21 09:24:13 -04:00
Chris Westin
be3c466975 fix gcc warnings and some file mode bits 2011-06-20 16:25:00 -07:00
dannenberg
72841b7fa2 multiply/subtract tests added 2011-06-20 14:49:09 -04:00
U-tellus\cwestin
15e883cc8b added test p11 2011-06-06 15:54:57 -04:00
U-tellus\cwestin
ffe1ea0b5e add DocumentSourceGroup for 2011-06-02 17:02:14 -07:00
U-tellus\cwestin
a1f3114c84 dotted paths on rhs a la free-758 2011-05-31 15:32:30 -07:00
U-tellus\cwestin
77c6882280 more test results checked 2011-05-31 13:33:24 -07:00
U-tellus\cwestin
a963ccb789 first several cases tested 2011-05-31 11:58:57 -07:00
U-tellus\cwestin
5877a88cc0 initial js testing framework for aggregation 2011-05-27 18:04:17 -07:00