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

Aggregation explain plan returns non-boolean 'isMultiKey' value

    XMLWordPrintableJSON

Details

    • 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");  

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: