[SERVER-50110] Create unit test for $alwaysTrue & $alwaysFalse to construct the MatchExpression directly without optimizing it Created: 04/Aug/20  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Andrii Dobroshynskyi (Inactive) Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: qexec-team, sbe-post-v1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-49839 Implement AlwaysFalse and AlwaysTrue ... Closed
Assigned Teams:
Query Execution
Participants:

 Description   

The query optimizer folds a lot of tautological/contradictory filters into simpler $alwaysTrue/$alwaysFalse statements before they ever make it to stage builder. So for plenty cases in the jstests, the stage builder will see a simple AlwaysFalseMatchExpression.

We want to add a unit test that directly constructs the MatchExpression without optimizing it.



 Comments   
Comment by Kyle Suarez [ 22/Jun/21 ]

andrii.dobroshynskyi, was this ticket filed because we think we don't have adequate coverage for the SBE implementation of alwaysTrue or alwaysFalse? I think this was filed back in your intern days.

Generated at Thu Feb 08 05:21:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.