[SERVER-31962] Replace Variables::hasUserDefinedValue() with a method that checks whether a variable is constant Created: 14/Nov/17  Updated: 30/Oct/23  Resolved: 17/Nov/17

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: 3.6.0-rc3
Fix Version/s: 3.6.0-rc5, 3.7.1

Type: Improvement Priority: Major - P3
Reporter: James Wahlin Assignee: James Wahlin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-31890 dotted expression with expressive loo... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6
Sprint: Query 2017-12-04
Participants:

 Description   

We currently fail to optimize ExpressionFieldPath with a user defined variable set explicitly to "missing" to ExpressionConstant. Knowing when a variable has been set to constant value, vs the default unset value of "missing" will allow us optimize correctly.



 Comments   
Comment by Githook User [ 17/Nov/17 ]

Author:

{'name': 'James Wahlin', 'username': 'jameswahlin', 'email': 'james@mongodb.com'}

Message: SERVER-31962 Replace Variables::hasUserDefinedValue() with const val chk

(cherry picked from commit 368f337eae2aab77b727fb91beb2d2bdd64ac53a)
Branch: v3.6
https://github.com/mongodb/mongo/commit/030e8dbc004f4fe71015f75fbb711a8db50623fc

Comment by Githook User [ 17/Nov/17 ]

Author:

{'name': 'James Wahlin', 'username': 'jameswahlin', 'email': 'james@mongodb.com'}

Message: SERVER-31962 Replace Variables::hasUserDefinedValue() with const val chk
Branch: master
https://github.com/mongodb/mongo/commit/368f337eae2aab77b727fb91beb2d2bdd64ac53a

Generated at Thu Feb 08 04:28:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.