Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12285

Aggregation explain plan returns non-boolean 'isMultiKey' value

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

      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

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: