Commit Graph

19 Commits

Author SHA1 Message Date
Anton Korshunov
0fc5b56b12 SERVER-51823 Use classic engine to evaluate queries containing expressions not supported in SBE 2021-02-14 15:30:07 +00:00
Ruoxin Xu
90c89d33c4 SERVER-51649 Convert aggregate command input to IDL 2021-01-07 11:20:50 +00:00
Charlie Swanson
a71a2a8bfe SERVER-47398 Start sending 'let' for aggregates.
Replaces usages of 'runtimeConstants' with 'let' parameters. This does
not replace usages for the write commands and for $merge. We will need
follow-up work for that.
2020-12-01 20:00:06 +00:00
Katherine Wu
d51e73db78 SERVER-51362 Ensure update and delete shell helpers support 'let' variables 2020-10-08 21:26:31 +00:00
David Percy
209bec74d8 SERVER-48905 Allow $rand in command-level 'let'
This relaxes a restriction on command-level 'let' bindings: instead of
requiring them to optimize() to a constant, we evaluate() them, once,
before running the query. This means {$rand: {}} is now allowed in a
command-level 'let'.

Referring to a field doesn't make sense in a command-level 'let', because
there is no "current document" yet. So we use DepsTracker to report an error,
rather than evaluate to missing.

Unbound variables are disallowed with the usual mechanism.
2020-08-17 20:30:02 +00:00
Justin Seyster
d80312792b SERVER-49227 Tag tests to be excluded from jsCore_slot_based_execution 2020-08-14 02:34:21 +00:00
Lingzhi Deng
14ef67e5d0 SERVER-50099: Update requires_fcv_46 and need_fixing_for_46 to 47 2020-08-05 16:27:25 +00:00
Pawel Terlecki
4c86696d09 SERVER-46716: Add tests for let parameters for sharded update
Bring back the earlier commit.
2020-06-12 05:11:44 +00:00
Eric Cox
0943e911c0 SERVER-46717 Testing of let parameters for deletes 2020-06-12 02:48:16 +00:00
Katherine Wu
1b9ebaabbc SERVER-46718 Support 'let' parameters for findAndModify in sharded environments 2020-06-12 01:49:40 +00:00
Katherine Wu
914d4a3ab1 Revert "SERVER-46716: Add tests for let parameters for sharded update"
This reverts commit 41fd8b2a5b.
2020-06-12 00:46:41 +00:00
Pawel Terlecki
41fd8b2a5b SERVER-46716: Add tests for let parameters for sharded update
Made cosmetic changes for the sake of consistency.
2020-06-11 22:16:43 +00:00
Katherine Wu
5c7cdc392c SERVER-46116 Add integration tests for let variables 2020-06-11 18:22:47 +00:00
Eric Cox
880378f3e0 SERVER-46717 Support let parameters for deletes in sharded environments 2020-06-11 17:41:52 +00:00
Jacob Evans
ed16dca5ef SERVER-46738 Ensure let parameters work for sharded find 2020-06-10 02:22:04 +00:00
Eric Cox
0b8388d726 SERVER-46707 Support 'let' variables in aggregate command in sharded deployments 2020-06-05 20:54:26 +00:00
Eric Cox
ef0e96cef5 SERVER-46115 Implement 'let' parameters to aggregate commands 2020-04-30 16:15:00 +00:00
Jason Chan
ab21bf5ef4 SERVER-47093 Re-enable multiversion passthroughs 2020-04-29 19:18:46 +00:00
Katherine Wu
53e1d78e95 SERVER-46708 Support let variables in update command 2020-04-28 21:57:39 +00:00