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

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

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            backlog-query-optimization Backlog - Query Optimization
            Reporter:
            davis.haupt Davis Haupt
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: