[SERVER-84396] Add support for distinct command into make_index_filters_into_query_settings.js Created: 22/Dec/23 Updated: 10/Jan/24 Resolved: 10/Jan/24 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Serhii Lysenko | Assignee: | Serhii Lysenko |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Sprint: | QE 2024-01-08, QE 2024-01-22 | ||||||||
| Participants: | |||||||||
| Description |
|
index_filter_collation.js is testing how index filters are applied to both find and distinct. The test fails in index_filters_to_query_settings suite because it overrides index filters commands to use query settings instead. Even though distinct supports query settings since |
| Comments |
| Comment by Serhii Lysenko [ 10/Jan/24 ] |
|
Index filters for distinct is a somewhat accidental feature and there couldn't be 1:1 mapping between index filters and query settings for distinct. A single index filter may cover multiple distinct query shapes because 'key' field is a part of a shape for distinct and that planCacheSetFilter is not using it. |