In classic_runtime_planner_for_sbe fix replanning for $where

XMLWordPrintableJSON

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

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

              Created:
              Updated:
              Resolved: