extractTopLevelFieldsFromMatchExpression is incorrect when the MatchExpression references $$ROOT

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Consider a query {a: ..., $expr: {...$$ROOT}}. Dependency analysis will report 'a' along with needsWholeDocument=true, but we would not keep any fields except 'a' in the sample

            Assignee:
            Henri Nikku
            Reporter:
            Henri Nikku
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: