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

Add integration tests for let variables in various commands

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.7.0
    • None
    • Fully Compatible
    • Query 2020-03-09, Query 2020-06-01, Query 2020-06-15

    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.

       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: