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

$expr rewrite is not prepared to handle "$$ROOT"

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0, 5.0.15
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • QO 2022-04-04
    • 40

      Currently it raises an assertion and fails the query as it tries to optimize this. I think this is a simple case to fix to just abandon optimization.

      I also think that I introduced this accidentally during a refactor in https://github.com/mongodb/mongo/commit/0e967d6ed33cdf9eb8314e6ae3fb3e2261e213d7 (SERVER-53638)

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: