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

Add integration tests for let variables in various commands

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Query 2020-03-09, Query 2020-06-01, Query 2020-06-15

      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.

       

            Assignee:
            katherine.wu@mongodb.com Katherine Wu (Inactive)
            Reporter:
            jacob.evans@mongodb.com Jacob Evans
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: