Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50110

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

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

      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:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            andrii.dobroshynskyi@mongodb.com Andrii Dobroshynskyi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: