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

4.0 Only: Make variables declared above DocumentSourceGraphLookup available within

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.19
    • Affects Version/s: 4.0.18
    • Component/s: None
    • Fully Compatible
    • 33

      This issue impacts the MongoDB 4.0 branch only.

      This following was added which fixes in 4.2 as part of implementing $$NOW and $$CLUSTER_TIME:
      https://github.com/mongodb/mongo/blob/fe855c5d116316c50905cf5900c23801fd0c6f68/src/mongo/db/pipeline/expression_context.cpp#L190-L191

      Without this copy, a $expr with the "restrictSearchWithMatch" $graphLookup argument will not have access to variables defined in a parent $lookup stage.

      When doing this work, we should confirm whether there is identical code in DocumentSourceLookup that can be removed.

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: