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

Support $elemMatch in query analysis

    XMLWordPrintableJSON

Details

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

    Description

      The children expressions of $elemMatch are parsed as top-level expressions, without the path prefix of the enclosing array. Therefore, when we recurse into the children expressions and try and look up the encryption metadata for the path, we get the metadata for the top-level schema rather than any schema information for the embedded document in the array field.

      This ticket should add a way to automatically prepend the path prefix of the array field to all requests for metadata to a given EncryptionSchemaTree. That way we could pass this "prefixed" schemaTree down to the recursive query analysis call to allow query analysis to access the proper encryption metadata.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: