[SERVER-66570] Timeseries pushes down metaField-projections that can change semantics Created: 18/May/22 Updated: 29/Oct/23 Resolved: 14/Nov/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 5.0.7, 6.0.0-rc6 |
| Fix Version/s: | 5.0.15, 6.0.4, 6.2.0-rc0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Sam Mercier | Assignee: | Hana Pearlman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v6.1, v6.0, v5.0
|
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 9 | ||||||||||||||||||||
| Description |
|
If a projection computes `obj` only in terms of a meta field and another field `blergh` is computed in terms of value of `obj` IN THE SAME PROJECTION, then we will push down the meta-field-only computation of `obj`. This causes `obj` to be overwritten before we can compute `blergh` causing an incorrect calculation. See the example below where `obj` is `obj` and `blergh` is `b`.
|
| Comments |
| Comment by Githook User [ 05/Jan/23 ] |
|
Author: {'name': 'Hana Pearlman', 'email': 'hana.pearlman@mongodb.com', 'username': 'HanaPearlman'}Message: |
| Comment by Githook User [ 05/Jan/23 ] |
|
Author: {'name': 'Hana Pearlman', 'email': 'hana.pearlman@mongodb.com', 'username': 'HanaPearlman'}Message: |
| Comment by Githook User [ 14/Nov/22 ] |
|
Author: {'name': 'Hana Pearlman', 'email': 'hana.pearlman@mongodb.com', 'username': 'HanaPearlman'}Message: |
| Comment by Ana Meza [ 19/May/22 ] |
|
Assigning this one to you samuel.mercier@mongodb.com hoping you can have time for it cc'james.wahlin@mongodb.com |
| Comment by James Wahlin [ 19/May/22 ] |
|
This is very similar to |