[SERVER-73822] Time-series $group rewrite ignores certain accumulators Created: 09/Feb/23  Updated: 29/Oct/23  Resolved: 14/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.3.0-rc0, 6.2.0-rc6
Fix Version/s: 7.0.0-rc0, 6.2.1, 6.3.0-rc1, 5.0.16, 6.0.6

Type: Bug Priority: Blocker - P1
Reporter: Arun Banala Assignee: Kevin Cherkauer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
Related
is related to SERVER-67780 Incorrect $group rewrite for timeseri... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.3, v6.2, v6.0, v5.0
Sprint: QE 2023-02-20
Participants:
Linked BF Score: 135

 Description   

The $group min-max rewrite logic is missing an else clause to fail the re-write when there is a non-constant expression.



 Comments   
Comment by Githook User [ 17/Mar/23 ]

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-73822 Time-series $group rewrite ignores certain accumulators
Branch: v5.0
https://github.com/mongodb/mongo/commit/d21c7305f5da8f58a93c5d5910a5b04e6a56c85d

Comment by Githook User [ 15/Mar/23 ]

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-73822 Time-series $group rewrite ignores certain accumulators
Branch: v6.0
https://github.com/mongodb/mongo/commit/fd9e6dd92750f5447e98540acdaa2310a419d21f

Comment by Githook User [ 13/Feb/23 ]

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-73822 Time-series $group rewrite ignores certain accumulators

(cherry picked from commit f9fd648140b48de6af36f1b96bd66b5b54d5deb7)
(cherry picked from commit c7f9aac258688e06e07919d713d919cd58e9125c)
Branch: v6.2
https://github.com/mongodb/mongo/commit/5a20629d209ea93d3685872c0d18fa508b7c7146

Comment by Arun Banala [ 13/Feb/23 ]

james.wahlin@mongodb.com Yes! I ran a patch build on 6.2 and ready to merge it in. I'll work with james.hippler@mongodb.com when he is online as 6.2 branch is frozen right now.

Comment by Githook User [ 13/Feb/23 ]

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-73822 Time-series $group rewrite ignores certain accumulators

(cherry picked from commit f9fd648140b48de6af36f1b96bd66b5b54d5deb7)
Branch: v6.3
https://github.com/mongodb/mongo/commit/f4b99751fb2383a94dce45685f12b97305a286d0

Comment by Githook User [ 11/Feb/23 ]

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-73822 Time-series $group rewrite ignores certain accumulators
Branch: master
https://github.com/mongodb/mongo/commit/f9fd648140b48de6af36f1b96bd66b5b54d5deb7

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