[SERVER-83567] Push in classic stores missing values. Created: 24/Nov/23  Updated: 02/Feb/24  Resolved: 27/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0, 7.2.0-rc2, 6.0.13, 7.0.6

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

Issue Links:
Backports
Depends
Backwards Compatibility: Minor Change
Operating System: ALL
Backport Requested:
v7.2, v7.0, v6.0
Sprint: QE 2023-12-11
Participants:
Linked BF Score: 135

 Description   

$push in window aggregate in classic stores the value "MISSING" when it finds a document with missing value. In SBE, $push ignores  missing (i.e. NOTHING) values. As a result, a collection with a single document with missing value sends to the next stage in classic an array with a single element (MISSING) and in SBE an empty array. The implementation of push in classic should be updated to ignore missing values in add and remove methods.

 

$push accumulator in classic correctly ignores "MISSING" values.



 Comments   
Comment by Githook User [ 02/Feb/24 ]

Author:

{'name': 'Matthew Boros', 'email': 'matt.boros@mongodb.com', 'username': 'mattBoros'}

Message: SERVER-83567 Ignore missing values in classic window implementation

GitOrigin-RevId: 3a54ca2787e0592abaef774466a84134aa0cad2c
Branch: v7.0
https://github.com/mongodb/mongo/commit/d7ba230e3253221c4743e8f6031f04af44f26b52

Comment by Githook User [ 27/Nov/23 ]

Author:

{'name': 'Foteini Alvanaki', 'email': 'foteini.alvanaki@mongodb.com', 'username': ''}

Message: SERVER-83567 Ignore missing values in classic window $push implementation

(cherry picked from commit b3d8b635d6fa090ddeeb3740559d89455160847d)
Branch: v6.0
https://github.com/mongodb/mongo/commit/eb7fe6fa9b4b601f3ad685acad52ef31849cfef1

Comment by Githook User [ 27/Nov/23 ]

Author:

{'name': 'Foteini Alvanaki', 'email': 'foteini.alvanaki@mongodb.com', 'username': ''}

Message: SERVER-83567 Ignore missing values in classic window $push implementation

(cherry picked from commit b3d8b635d6fa090ddeeb3740559d89455160847d)
Branch: v7.2
https://github.com/mongodb/mongo/commit/4e9cfd72e7ef6ef693449b416dec41565666d999

Comment by Githook User [ 27/Nov/23 ]

Author:

{'name': 'Foteini Alvanaki', 'email': 'foteini.alvanaki@mongodb.com', 'username': ''}

Message: SERVER-83567 Ignore missing values in classic window $push implementation
Branch: master
https://github.com/mongodb/mongo/commit/b3d8b635d6fa090ddeeb3740559d89455160847d

Generated at Thu Feb 08 06:52:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.