[SERVER-85422] [{$addFields: {}}, {$count: "count"}] counts number of buckets in timeseries with featureFlagSbeFull Created: 18/Jan/24  Updated: 26/Jan/24  Resolved: 26/Jan/24

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

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.3
Participants:
Linked BF Score: 152

 Description   

With featureFlagSbeFull, a [\{$addFields: {}}, \{$count: "count"}] pipeline run against a timeseries collections will get pushed down to SBE as $group stage, but it will return the number of buckets instead of the number of groups.



 Comments   
Comment by Githook User [ 26/Jan/24 ]

Author:

{'name': 'Parker Felix', 'email': '68665637+parker-felix@users.noreply.github.com', 'username': 'parker-felix'}

Message: SERVER-85422 / BACKPORT-18544 Always add a blockToRow stage even when no block fields are required (#18424)

GitOrigin-RevId: 00bcb0080ae37cfaa65497ec35415933b1c0dc0c
Branch: v7.3
https://github.com/mongodb/mongo/commit/4af8f6496d8b4cc00a7a441df8a47ffb3a0dbc8e

Comment by Githook User [ 25/Jan/24 ]

Author:

{'name': 'Parker Felix', 'email': '68665637+parker-felix@users.noreply.github.com', 'username': 'parker-felix'}

Message: SERVER-85422 Always add a blockToRow stage even when no block fields are required (#18263)

GitOrigin-RevId: f3d24c6ab58953959a8241b92664ef8b6ff1f8c6
Branch: master
https://github.com/mongodb/mongo/commit/e70e2bc13e569c9ac4fcc03b1186c15cd29a72b6

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