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

[FLE] $$REMOVE should not add a NotEncryptedNode to the schema tree.

    • Query Optimization

      Currently, $$REMOVE is treated like a $let variable by the expression schema walker, and so is represented by an NotEncryptedNode in the schema tree. However, this means that aggregations cannot conditionally include or exclude encrypted fields with matching encryption in a $project stage, and then later match or group on that field, since the combination of $$REMOVE with the encrypted field will result in a MixedStateNode. Instead, $$REMOVE should just not result in the addition/reconciliation of any schema nodes.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: