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

In classic_runtime_planner_for_sbe fix replanning for $where

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • Fully Compatible
    • QE 2024-03-18

      If enabled, jstests/noPassthrough/plan_cache_replan_where.js will fail, because we extract JsFunction from classic into SBE when building a cached plan:

      https://github.com/mongodb/mongo/blob/60a764aa28abd283bf3863897baf0203f6eaad48/src/mongo/db/query/bind_input_params.cpp#L209

      In case of replanning, we will try to execute classic again, but JsFunction is already null.

       

            Assignee:
            ivan.fefer@mongodb.com Ivan Fefer
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: