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

Require ExpressionContext before creation of CanonicalQuery

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • Query Execution

    Description

      Currently it is possible to pass a null expression context to CanonicalQuery::canonicalize(). If this happens, CanonicalQuery will create one for you. This behavior is confusing and bug-prone. Instead, operations should create an ExpressionContext up front and thread it through the places which need it.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: