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

Encode parameter data types into QueryShapeString

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-10-02, QO 2023-10-16, QO 2023-10-30, QO 2023-11-13, QO 2023-11-27, QO 2023-12-11, QO 2023-12-25, QO 2024-01-08, QO 2024-01-22

      The current QueryShapeString used in the SBE plan cache includes the `inputParamId` but not the datatype. We should include the "canonical" datatype (c.f. canonicalizeBSONType) with the parameter. This is required to cache plans with keys which guarantee correctness across canonically-equivalent types (eg double and int).

            Assignee:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Reporter:
            jess.balint@mongodb.com Jess Balint
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: