[SERVER-73102] [CQF] Simplify explain for evaluation of simple constants Created: 19/Jan/23  Updated: 29/Oct/23  Resolved: 10/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Will Buerger Assignee: Svilen Mihaylov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Sprint: QO 2023-02-20
Participants:

 Description   

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}]



 Comments   
Comment by Githook User [ 10/Feb/23 ]

Author:

{'name': 'Svilen Mihaylov', 'email': 'svilen.mihaylov@mongodb.com', 'username': 'svilen-mihaylov'}

Message: SERVER-73102 [CQF] Simplify explain for evaluation of simple constants
Branch: master
https://github.com/mongodb/mongo/commit/a6babc2a1789fae2eb6057152fca59b3da2ab778

Generated at Thu Feb 08 06:23:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.