Create unit test for $alwaysTrue & $alwaysFalse to construct the MatchExpression directly without optimizing it

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              [DO NOT USE] Backlog - Query Execution
              Reporter:
              Andrii Dobroshynskyi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: