[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:
Depends
depends on SERVER-79230 Apply QuerySettings for distinct comm... Closed
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 SERVER-79230, the overrides from make_index_filters_into_query_settings.js are only mocking index filters applied to find command.  



 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.

Generated at Thu Feb 08 06:54:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.