[SERVER-68811] Timeseries min/max rewrites should use Expression dependencies to identify whether the re-writes are possibles Created: 13/Aug/22  Updated: 07/Nov/23  Resolved: 07/Nov/23

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

Type: Improvement Priority: Major - P3
Reporter: Svilen Mihaylov (Inactive) Assignee: Chris Wolff
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Sprint: QI 2023-10-16, QI 2023-10-30, QI 2023-11-13
Participants:

 Description   

This is an optimization where we can push a $group before an internal bucket unpack. We currently don't support the rewrite when the group key is complicated expression (not ExpressionFieldPath) that depends only on the meta field, e.g. _id: {$add: ["$meta", 42]}.



 Comments   
Comment by Githook User [ 01/Nov/23 ]

Author:

{'name': 'Christopher M. Wolff', 'email': 'chris.wolff@mongodb.com', 'username': 'wolffcm'}

Message: SERVER-68811 Generalize rewriting metafield paths for timeseries group reorder
Branch: master
https://github.com/mongodb/mongo/commit/4ff362ad321af552b65c8f8aa1a06a58ffa041bf

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