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

Fix positional projection serialization to be re-parseable

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • QO 2023-07-24, QO 2023-08-07, QO 2023-08-21, QO 2023-09-04, QO 2023-09-18

      When we have a query that uses positional projection on an array, the positional projection is serialized as, for example,

      { sub: { $id.$: true } }

      whereas the original (valid) syntax is

      { sub.$id.$: true }

      This results in this re-parse error:

      Was not able to re-parse queryStats key when reading queryStats. Status: Location31325: Unknown expression $id.$ 

       

      The test dbref3.js caught this bug and should be re-enabled when it's fixed.

            Assignee:
            alyssa.clark@mongodb.com Alyssa Clark
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: