[SERVER-70120] [CQF] Extra Unique stage after GroupBy Created: 29/Sep/22  Updated: 29/Oct/23  Resolved: 10/Oct/22

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

Type: Improvement Priority: Major - P3
Reporter: Matt Boros Assignee: Naama Bareket
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QO 2022-10-03, QE 2022-10-17
Participants:

 Description   

Example

A GroupBy followed by Unique in this example could be simplified to just the GroupBy, since the keys produced by the GroupBy are unique. We should investigate when this happens and add a rewrite to simplify.



 Comments   
Comment by Githook User [ 07/Oct/22 ]

Author:

{'name': 'Naama Bareket', 'email': 'naama.bareket@mongodb.com', 'username': 'naama-bareket'}

Message: SERVER-70120 [CQF] Extra Unique stage after GroupBy
Branch: master
https://github.com/mongodb/mongo/commit/f51f96d79638e67bb310264fb547af028901ee8d

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