[SERVER-82101] Timeseries rewrites should be separate from view resolution Created: 11/Oct/23  Updated: 26/Dec/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Will Buerger Assignee: Backlog - Query Integration
Resolution: Unresolved Votes: 0
Labels: qi-timeseries
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-81826 Investigate views-aggregation perform... Closed
Assigned Teams:
Query Integration
Participants:

 Description   

Timeseries rewrites occur here when we're in the midst of resolving a view definition into the full aggregation pipeline. With query stats, we need to handle parsing the view pipeline and user pipeline separately in run_aggregate. That is impossible for timeseries queries since these rewrites are only done over the full resolved pipeline, so viewPipeline + userPipeline is not equivalent to the full pipeline.

We should consider moving some of these rewrites into the DocumentSource structure somewhere after parsing but before optimization; rewrites that don't re-order pipeline stages and just modify fields internal to a stage could also be moved into resolveView.


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