[COMPASS-6558] Investigate changes in SERVER-72687: Support for $out to Time-series collections Created: 24/Feb/23 Updated: 26/Sep/23 Resolved: 08/Mar/23 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | No version |
| Type: | Investigation | Priority: | Major - P3 |
| Reporter: | Backlog - Core Eng Program Management Team | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Documentation Changes: | Not Needed | ||||||||||||||||
| Description |
|
Original Downstream Change Summary These changes add a new option ("timeseries") for the $out aggregation stage. $out will now accept a "timeseries" option that takes in a time-series specification. $out will create a new time-series collection in the specified namespace if an existing collection does not exist in that namespace. If a collection exists in that namespace, $out will do the following: 1. If the collection is not a time-series collection, $out will error. These changes are not supported for sharded collections. There is currently follow-up work tracked by SERVER-74061 currently in progress to add support for secondaries and sharded clusters. For more information the syntax doc can be found at this link: https://docs.google.com/document/d/15lAB2yQ8e_fR4RnihjsJMotEaIiTe9q_qk-D509DWkM/edit?usp=sharing Description of Linked TicketWe should accept the time-series spec in the $out stage and use that to create a time-series collection as part of the DocumentSourceOut stage. This should remove any restriction prohibiting $out from targeting an unsharded time-series collection, and add tests that verify the correct behavior. We don't need to support sharded time-series collection as part of this ticket. |
| Comments |
| Comment by PM Bot [ 26/Sep/23 ] |
|
Fix Version updated for upstream |
| Comment by Rhys Howell [ 08/Mar/23 ] |
|
Created |