[SERVER-31890] dotted expression with expressive lookup don't get expanded Created: 09/Nov/17  Updated: 30/Oct/23  Resolved: 14/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: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: James Wahlin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-31962 Replace Variables::hasUserDefinedValu... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2017-11-13, Query 2017-12-04
Participants:

 Description   

{$lookup:{ from:'x',
                 let: { a : "$$ROOT"},
                 pipeline: [ {$addFields:{a:"$$a.field"}} ]
...
}}

Referencing "$$a.field" returns full object "$$a" instead of just field 'field'



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

Author:

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

Message: SERVER-31890 ExpressionFieldPath::optimize() should expand dotted field path

(cherry picked from commit 987932bcd0244b688eb3be02ad6945cd0628dc57)
Branch: v3.6
https://github.com/mongodb/mongo/commit/9f92d1afd27bbc0b98da98a1cc0802d3f0736c2c

Comment by Githook User [ 14/Nov/17 ]

Author:

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

Message: SERVER-31890 ExpressionFieldPath::optimize() should expand dotted field path
Branch: master
https://github.com/mongodb/mongo/commit/987932bcd0244b688eb3be02ad6945cd0628dc57

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