[SERVER-84159] Variadic expressions have inconsistent query shapes Created: 13/Dec/23 Updated: 03/Jan/24 Resolved: 03/Jan/24 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.3.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alyssa Clark | Assignee: | Alyssa Clark |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | flag-for-2885-backport | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Query Integration
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 18 | ||||||||||||
| Description |
|
We noticed some interesting behavior for query shapes with variadic expressions (e.g. $multiply, $sum, etc). Here are some contrasting examples:
is simplified to
while
is generally preserved as
It's not clear what the desirable behavior here (there's a tradeoff between a possibly high cardinality of query shapes vs losing details of the user's original query), but it seems like the behavior between these two cases should not be so different. |
| Comments |
| Comment by Githook User [ 03/Jan/24 ] |
|
Author: {'name': 'Alyssa Wagenmaker', 'email': 'alyssa.clark@mongodb.com', 'username': 'awagenmaker'}Message: GitOrigin-RevId: 44bf6f08f6749ad58424913f4acea85b66739672 |
| Comment by Charlie Swanson [ 20/Dec/23 ] |
|
Punting this out of PM-2885 and leaving assigned to alyssa.clark@mongodb.com to resolve. We are closing the epic since all customer-focused work is complete. |