[SERVER-60111] Fix _id group bug with dataset that has missing value or null value for _id fieldpath Created: 21/Sep/21  Updated: 29/Oct/23  Resolved: 22/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Yoon Soo Kim Assignee: Yoon Soo Kim
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

coll.insert([\{a: null}, \{b: 1}]);
 
db.adminCommand(\{setParameter: 1, internalQueryEnableSlotBasedExecutionEngine: true});
 
coll.aggregate([\{$group: {_id: "$a"}}]);
{ "_id" : null }
{ "_id" : null }

Sprint: QE 2021-10-04
Participants:

 Description   

SBE $group returns two _id: null s for both missing value and null value for _id field path. They should be considered as a same group and return one _id: null.

 



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Generated at Thu Feb 08 05:48:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.