diff options
Diffstat (limited to 'jstests/aggregation/sources/multiple_unpack_bucket_error.js')
-rw-r--r-- | jstests/aggregation/sources/multiple_unpack_bucket_error.js | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/jstests/aggregation/sources/multiple_unpack_bucket_error.js b/jstests/aggregation/sources/multiple_unpack_bucket_error.js index 3b5f20bf631..b00c6265f9b 100644 --- a/jstests/aggregation/sources/multiple_unpack_bucket_error.js +++ b/jstests/aggregation/sources/multiple_unpack_bucket_error.js @@ -13,36 +13,48 @@ coll.drop(); assert.commandFailedWithCode(db.runCommand({ aggregate: coll.getName(), pipeline: [ - {$_internalUnpackBucket: {exclude: [], timeField: 'time', bucketMaxSpanSeconds: 3600}}, - {$_internalUnpackBucket: {exclude: [], timeField: 'time', bucketMaxSpanSeconds: 3600}} + { + $_internalUnpackBucket: + {exclude: [], timeField: 'time', bucketMaxSpanSeconds: NumberInt(3600)} + }, + { + $_internalUnpackBucket: + {exclude: [], timeField: 'time', bucketMaxSpanSeconds: NumberInt(3600)} + } ], cursor: {} }), - 5348304); + 7183900); // $_unpackBucket is an alias of $_internalUnpackBucket, the same restriction should apply. assert.commandFailedWithCode(db.runCommand({ aggregate: coll.getName(), pipeline: [ {$_unpackBucket: {timeField: 'time'}}, - {$_internalUnpackBucket: {exclude: [], timeField: 'time', bucketMaxSpanSeconds: 3600}} + { + $_internalUnpackBucket: + {exclude: [], timeField: 'time', bucketMaxSpanSeconds: NumberInt(3600)} + } ], cursor: {} }), - 5348304); + 7183900); assert.commandFailedWithCode(db.runCommand({ aggregate: coll.getName(), pipeline: [ - {$_internalUnpackBucket: {exclude: [], timeField: 'time', bucketMaxSpanSeconds: 3600}}, + { + $_internalUnpackBucket: + {exclude: [], timeField: 'time', bucketMaxSpanSeconds: NumberInt(3600)} + }, {$_unpackBucket: {timeField: 'time'}} ], cursor: {} }), - 5348304); + 7183900); assert.commandFailedWithCode(db.runCommand({ aggregate: coll.getName(), pipeline: [{$_unpackBucket: {timeField: 'time'}}, {$_unpackBucket: {timeField: 'time'}}], cursor: {} }), - 5348304); + 7183900); })(); |