-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.4.0, 3.4.1
-
Component/s: None
-
None
-
ALL
When going through M034 with MongoDB 3.4.1 on Mac OS X Yosemite v 10.10.5 I generated a seg fault on the server by running the following query on the following dataset. Backtrace attached. Seg fault also generated on 3.4.0. with the same query and dataset.
db.companies.aggregate( [ {'$match': { 'number_of_employees' : {'$type': 'int'} }}, { '$facet': { 'Employees': [ {'$bucketAuto': { 'groupBy': '$number_of_employees', 'buckets': 3, 'granularity': '1-2-5', 'output': { value: {$max: '$number_of_employees'} } }}], } }]).pretty()
However the same query replacing '$max' with '$sum' works just fine.
db.companies.aggregate( [ {'$match': { 'number_of_employees' : {'$type': 'int'} }}, { '$facet': { 'Employees': [ {'$bucketAuto': { 'groupBy': '$number_of_employees', 'buckets': 3, 'granularity': '1-2-5', 'output': { value: {$sum: "$number_of_employees"} } }}], } }]).pretty()
- duplicates
-
SERVER-25535 Remove injectExpressionContext() methods from pipeline directory
- Closed