Remove "executeInSbe" flag from ClassicPlanCacheWriter

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2026-02-16
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When sub-planning, we pass a caching callback to decide if we want to cache per-branch and/or whole query planning results.

      A common callback object that is used is ClassicPlanCacheWriter.

      This class has a "executeInSbe" flag that is set to false in classic planners and set to true in "classic planners for sbe". 

      However, the only thing that this flag affects is what metric are we writing: reads for SBE or works for Classic.

      This code can be simplified and flag can be removed if we just write both numbers.

      This is also important if we want to move engine selecting after planning: this will allow us to trial a cached plan no matter what engine we choose.

      Also it will allow us not to flush plan cache on internalQueryFrameworkControl parameter change.

            Assignee:
            Ivan Fefer
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: