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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: