[SERVER-45454] Desugar $where to $expr + $function Created: 09/Jan/20 Updated: 29/Oct/23 Resolved: 13/Feb/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.2 Required |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | David Percy | Assignee: | Eric Cox (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | qopt-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Sprint: | Query 2020-01-27, Query 2020-02-10, Query 2020-02-24 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||||||||||||||
| Description |
|
Support $where by translating it to $function. Then remove the existing implementation of $where. $function is an aggregation expression while $where is a match expression, so we can use $expr to embed the agg expression where a match expression is expected. This new implementation of $where will not support passing a CodeWithScope as the function. Make sure $where still works on FCV 4.2, even though $function may be restricted to FCV 4.4. |
| Comments |
| Comment by Githook User [ 13/Feb/20 ] |
|
Author: {'name': 'Eric Cox', 'username': 'ericox', 'email': 'eric.cox@mongodb.com'}Message: |
| Comment by Githook User [ 13/Feb/20 ] |
|
Author: {'username': 'ericox', 'name': 'Eric Cox', 'email': 'eric.cox@mongodb.com'}Message: |