diff options
author | Arun Banala <arun.banala@mongodb.com> | 2019-05-29 11:36:58 +0100 |
---|---|---|
committer | Arun Banala <arun.banala@mongodb.com> | 2019-06-11 17:31:47 +0100 |
commit | 17cdb38b6db716dc47485a60ddff3c543e713e3d (patch) | |
tree | 71e9397c86220a4084da28d195563af3b3831507 /jstests/aggregation/sources/lookup/lookup_subpipeline.js | |
parent | 38d00f12ec33b6c646ed50cac7b129d2a1566321 (diff) | |
download | mongo-17cdb38b6db716dc47485a60ddff3c543e713e3d.tar.gz |
SERVER-41065 Make evaluate() thread safe by passing 'Variables' as a parameter
Diffstat (limited to 'jstests/aggregation/sources/lookup/lookup_subpipeline.js')
-rw-r--r-- | jstests/aggregation/sources/lookup/lookup_subpipeline.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/jstests/aggregation/sources/lookup/lookup_subpipeline.js b/jstests/aggregation/sources/lookup/lookup_subpipeline.js index bb7bddc3eca..39d2ff0d850 100644 --- a/jstests/aggregation/sources/lookup/lookup_subpipeline.js +++ b/jstests/aggregation/sources/lookup/lookup_subpipeline.js @@ -376,6 +376,23 @@ } }], 17276); + assertErrorCode( + coll, + [{$lookup: {let : {var1: 1, var2: "$$var1"}, pipeline: [], from: "from", as: "as"}}], + 17276); + assertErrorCode(coll, + [{ + $lookup: { + let : { + var1: {$let: {vars: {var1: 2}, in : "$$var1"}}, + var2: {$let: {vars: {var1: 4}, in : "$$var2"}}, + }, + pipeline: [], + from: "from", + as: "as" + } + }], + 17276); // The dotted path offset of a non-object variable is equivalent referencing an undefined // field. |