[SERVER-83072] Time-series min/max rewrite broken for arrays Created: 09/Nov/23 Updated: 05/Feb/24 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Arun Banala | Assignee: | Arun Banala |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
We currently have an optimization which pushes $group before unpacking if the group has the pattern where group key is on metaField, and the accumulator is a $min/$max. This does not work when the control summary value is array. The min/max for arrays are computed as min/max per element. |