[SERVER-12285] Aggregation explain plan returns non-boolean 'isMultiKey' value Created: 07/Jan/14  Updated: 11/Jul/16  Resolved: 07/Jan/14

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 2.5.5

Type: Bug Priority: Minor - P4
Reporter: Kamran K. Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

var res = db.fakeColl.aggregate([], {explain: true});
printjson(res);
 
assert.eq(typeof res.stages[0].plan.isMultiKey, "boolean");
 

Participants:

 Description   

I would expect aggregation explain plans to return a boolean value for isMultiKey instead of the string "isMultiKey". Here's the output from the included JS test:

{
	"stages" : [
		{
			"query" : {
				
			},
			"plan" : {
				"cursor" : "BasicCursor",
				"isMultiKey" : "isMultiKey",
				"scanAndOrder" : false,
				"allPlans" : [
					{
						"cursor" : "BasicCursor"
					}
				]
			}
		}
	],
	"ok" : 1
}
assert: ["string"] != ["boolean"] are not equal : undefined


Version: 735a759908a3a8e792909eb23160ec29eba83e9c



 Comments   
Comment by Githook User [ 07/Jan/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-12285 fix isMultiKey in agg explain
Branch: master
https://github.com/mongodb/mongo/commit/f921842ed25534bb62b3d3aeac7fe6392d2a8da6

Generated at Thu Feb 08 03:28:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.