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

[CQF] Simplify explain for evaluation of simple constants

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Fully Compatible
    • QO 2023-02-20

      SERVER-72233 simplified the explain output for Evaluation nodes to concisely list projections at the top level. We can simplify that output further in cases where the only node in the Evaluation path is a simple constant or variable.

      For example, what is currently printed as

      Evaluation [{val_prev}]
      |     Variable [valIn]
      

      could be simplified to

      Evaluation[{val_prev = valIn}]
      

      and what is current printed asĀ 

      Evaluation [{val_prev}]
      |     Const [1]
      

      could be simplified to

      Evaluation[{val_prev = 1}]
      

            Assignee:
            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: