[SERVER-31962] Replace Variables::hasUserDefinedValue() with a method that checks whether a variable is constant Created: 14/Nov/17 Updated: 30/Oct/23 Resolved: 17/Nov/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | 3.6.0-rc3 |
| Fix Version/s: | 3.6.0-rc5, 3.7.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | James Wahlin | Assignee: | James Wahlin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Backport Requested: |
v3.6
|
||||||||||||
| Sprint: | Query 2017-12-04 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
We currently fail to optimize ExpressionFieldPath with a user defined variable set explicitly to "missing" to ExpressionConstant. Knowing when a variable has been set to constant value, vs the default unset value of "missing" will allow us optimize correctly. |
| Comments |
| Comment by Githook User [ 17/Nov/17 ] |
|
Author: {'name': 'James Wahlin', 'username': 'jameswahlin', 'email': 'james@mongodb.com'}Message: (cherry picked from commit 368f337eae2aab77b727fb91beb2d2bdd64ac53a) |
| Comment by Githook User [ 17/Nov/17 ] |
|
Author: {'name': 'James Wahlin', 'username': 'jameswahlin', 'email': 'james@mongodb.com'}Message: |