Commit Graph

183 Commits

Author SHA1 Message Date
Jonathan Reams
338f764be0 SERVER-6102 Deserialize BSON undefined as JS undefined 2015-11-11 11:12:17 -05:00
Kaloian Manassiev
706ac90265 SERVER-21186 Make all sharding tests use default verbosity of 1
The default ShardingTest verbosity is currently zero, but we have many
tests, which bump it to 1 and even higher.

Since verbosity level of 0 is sometimes insufficient for investigating
transient failures, this change makes the default to be 1 and removes all
places, which explicitly make it 1 or higher.
2015-11-11 11:01:18 -05:00
Mathias Stearn
f79d188718 SERVER-21287 $lookup should always make $eq queries 2015-11-04 13:53:03 -05:00
Charlie Swanson
2cc2d7da2b SERVER-19095 Move $lookup to community edition 2015-10-30 12:06:19 -04:00
James Wahlin
97da4befad SERVER-20969 Restrict $indexStats to first pipeline stage 2015-10-28 15:44:02 -04:00
David Storch
737bb20fcb SERVER-20935 do not attempt to attach shard version to OpCtx inside direct client 2015-10-22 13:40:06 -04:00
Charlie Swanson
c7ddaa120d SERVER-20168 Empty array should not be present in document after $unwind 2015-10-07 16:11:46 -04:00
Charlie Swanson
9c46f95145 SERVER-20595 The includeArrayIndex option to $unwind should specify a path 2015-10-07 16:11:45 -04:00
Ramon Fernandez
114ad4ae31 SERVER-20696 make testing TZ-independent 2015-10-01 10:57:40 -04:00
Charlie Swanson
522f5a2bff SERVER-4588 Add option to $unwind stage to include array index in output
Adds a includeArrayIndex option to the $unwind stage. If this option is
specified, the $unwind stage will output values with the structure {index:
<array index>, value: <array value>} instead of just the array value.

Note this does not affect the behavior non-arrays or empty arrays. If
includeArrayIndex and preserveNullAndEmptyArrays are both specified, values
from a non-empty array will have an index attached, and all other values will
pass through unchanged.
2015-09-11 15:30:11 -04:00
Charlie Swanson
3cb6039e5d SERVER-20168 Add option to $unwind stage for treatment of nullish values
Adds a preserveNullAndEmptyArrays option to the $unwind stage. If this option
is specified, the $unwind stage will allow documents with nullish values for
the specified unwinding path, or those with an empty array as the value for
that path, to pass through unaltered.

Note this does not affect the behavior of non-nullish, non-array values.
2015-09-11 15:30:11 -04:00
Charlie Swanson
b8450fd52c SERVER-19182 Avoid crash during pipeline with an initial $sample stage on a non-existent collection 2015-08-27 15:07:21 -04:00
Charlie Swanson
843fd8ae34 SERVER-12015 Re-enable use of covering indices in an aggregation pipeline 2015-08-27 13:01:50 -04:00
Spencer T Brody
0d61a38662 SERVER-19855 Use ShardConnection for migrations and splits
This reverts commit 169a7ca486.
2015-08-25 15:00:48 -04:00
Benety Goh
169a7ca486 Revert "SERVER-19855 Use ShardConnection for migrations and splits"
This reverts commit fdc2aec174.
2015-08-21 22:16:04 -04:00
Kaloian Manassiev
fdc2aec174 Revert "Revert "SERVER-19855 Use ShardConnection for migrations and splits""
This reverts commit bae1d256c5.
2015-08-21 17:00:14 -04:00
Kaloian Manassiev
bae1d256c5 Revert "SERVER-19855 Use ShardConnection for migrations and splits"
This reverts commit f8cdaf32b6.
2015-08-21 13:12:16 -04:00
Kaloian Manassiev
f8cdaf32b6 SERVER-19855 Use ShardConnection for migrations and splits
This ensures that prior to sending the operation on the wire, the host
will be primed to know that it is part of a sharded cluster.
2015-08-21 12:10:38 -04:00
James Cohan
f9828f5a03 SERVER-9625 Makes $sum, $avg, $min, $max, $stdDevPop, and $stdDevSamp accumulators available as expressions 2015-08-11 17:08:41 -04:00
Charlie Swanson
326aa0029a SERVER-19548 Add $ceil, $floor, and $trunc aggregation expressions 2015-08-07 16:56:28 -04:00
James Cohan
eae8944738 Revert "Whitespace"
This reverts commit 94c384780d.
2015-08-07 14:18:42 -04:00
James Cohan
94c384780d Whitespace 2015-08-07 13:57:51 -04:00
James Cohan
a8176cf1da SERVER-18427 Adds $log, $log10, $ln, $pow, and $exp aggregation expressions 2015-08-07 10:34:41 -04:00
James Cohan
6ba08bc5bd Revert "SERVER-18427 Adds $log, $log10, $ln, $pow, and $exp aggregation expressions"
This reverts commit f0541cc1f7.
2015-08-04 13:28:16 -04:00
James Cohan
f0541cc1f7 SERVER-18427 Adds $log, $log10, $ln, $pow, and $exp aggregation expressions 2015-07-31 16:51:55 -04:00
Kaloian Manassiev
d5a9eea40f SERVER-19319 SetShardVersionRequest
This change introduces a SetShardVersionRequest class, which will be used
to parse and construct the BSON for setShardVersion commands.
2015-07-31 14:33:41 -04:00
Charlie Swanson
610765fdb9 SERVER-533 Add aggregation stage to randomly sample documents 2015-07-20 16:03:29 -04:00
Charlie Swanson
4f1dda92ed Revert "$sample"
This reverts commit 824776f671.
2015-07-20 15:59:22 -04:00
Charlie Swanson
824776f671 $sample
Conflicts:
	src/mongo/db/pipeline/document_source.h
	src/mongo/db/pipeline/document_source_test.cpp
2015-07-20 15:40:54 -04:00
Charlie Swanson
84699e46bf SERVER-14691: $avg accumulator should return null if it receives no numeric inputs 2015-07-15 16:55:14 -04:00
Charlie Swanson
c6e7a0874e SERVER-8141 Avoid treating arrays as literals in aggregation pipeline 2015-07-15 16:24:44 -04:00
Charlie Swanson
1e1bbec4cb SERVER-6074 Add $slice aggregation expression 2015-07-14 10:06:27 -04:00
James Cohan
4f4e36b69b SERVER-8568 Add $sqrt aggregation expression 2015-07-01 11:45:39 -04:00
James Cohan
9710407506 Revert "SERVER-8568 Add $sqrt aggregation expression"
This reverts commit 4423ee5c49.
2015-06-30 18:01:10 -04:00
James Cohan
4423ee5c49 SERVER-8568 Add $sqrt aggregation expression 2015-06-30 17:34:57 -04:00
Kevin Albertson
2a20332297 SERVER-14421 Adds minDistance to geoNear aggregate operator 2015-06-18 15:18:33 -04:00
Charlie Swanson
c317c2b941 SERVER-4589: Add $arrayElemAt aggregation expression 2015-06-18 14:50:53 -04:00
Charlie Swanson
5717454bc3 SERVER-14872: Aggregation expression to concatenate multiple arrays into one 2015-06-15 13:29:53 -04:00
James Cohan
cfbd477d73 Add $abs aggregation expression 2015-06-09 17:33:23 -04:00
Mathias Stearn
ac0ff84d3f SERVER-5044 Standard Deviation accumulator operators 2015-06-09 16:33:21 -04:00
Charlie Swanson
bc45142fd9 SERVER-6801: Error when aggregation's $substr expression results in invalid UTF-8 2015-05-22 15:18:32 -04:00
Adam Midvidy
cb8164f6f7 SERVER-18198 fix incorrect logic for applying read pref to aggregate command 2015-05-15 17:07:06 -04:00
Randolph Tan
280fbae904 SERVER-18044 Make sharding test explicitly set primary shards for databases 2015-05-15 10:11:31 -04:00
Charlie Swanson
6b38c7a53f SERVER-17943 Add $filter aggregation expression 2015-05-07 17:27:29 -04:00
Charlie
52c12e8435 SERVER-18222 Add $isArray aggregation expression 2015-05-04 16:37:18 -04:00
Mathias Stearn
a0db932113 SERVER-17224 Reserve room for EOO byte when starting BSONObj building
Since _done() is called from ~BSONObjBuilder we need to ensure that it cannot
fail. This prevents a double exception leading to a std::terminate call.

This also resolves SERVER-17226.
2015-03-05 13:22:19 -05:00
Siyuan Zhou
f18c1a14b4 SERVER-16580 Remove deprecated system collection references in JS tests 2015-01-09 18:40:56 -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
Geert Bosch
47c80ebc62 SERVER-15810: temporarily disable problematic assert in test 2014-10-27 21:22:58 -04:00
Geert Bosch
98b886ba69 SERVER-15810: Check for valid collection names in aggregation
Add new aggregation test for this.
2014-10-27 17:56:04 -04:00