Encode parameter data types into QueryShapeString

XMLWordPrintableJSON

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

      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
              Reporter:
              Jess Balint
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: