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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Execution

    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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            andrii.dobroshynskyi@mongodb.com Andrii Dobroshynskyi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: