[SERVER-46116] Add integration tests for let variables in various commands Created: 12/Feb/20  Updated: 29/Oct/23  Resolved: 11/Jun/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Task Priority: Major - P3
Reporter: Jacob Evans Assignee: Katherine Wu (Inactive)
Resolution: Fixed Votes: 0
Labels: qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-46707 Support 'let' variables in aggregate ... Closed
depends on SERVER-46716 Support 'let' parameters for updates ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2020-03-09, Query 2020-06-01, Query 2020-06-15
Participants:

 Description   

Test interesting edge cases for the 'let' variables. I think this should include:

  • Test that the variable shadowing works correctly in aggregate for something like a conflicting name in a $let expression and in the 'let' parameter for a sub-pipeline for a $lookup.
  • Test passing variables with reserved names (those that start with a capital letter), especially those that conflict with builtin variables like $$NOW.
  • Test that variables can be used normally when querying a view.

 



 Comments   
Comment by Githook User [ 11/Jun/20 ]

Author:

{'name': 'Katherine Wu', 'email': 'katherine.wu@mongodb.com', 'username': 'kaywux'}

Message: SERVER-46116 Add integration tests for let variables
Branch: master
https://github.com/mongodb/mongo/commit/5c7cdc392c2ea058d7ec93609203fcc5bb74bb99

Comment by Ted Tuckman [ 09/Mar/20 ]

This ticket is in stasis - - basically already done, but not merged due to the project being in flux.

Comment by Charlie Swanson [ 27/Feb/20 ]

jacob.evans I believe you said this ticket was actually going to duplicate SERVER-46115, so I'm re-titling this ticket to be about testing SERVER-46115, and I'm assigning it to myself.

Generated at Thu Feb 08 05:10:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.