-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Fully Compatible
-
v4.4
-
Query 2020-06-01, Query 2020-06-15
-
46
For generating a random number during aggregation or something like SERVER-22225 it would be nice to have a way to generate a (pseudo-)random number, either as an expression or an a system variable.
- is depended on by
-
SERVER-48474 Add $sampleRate match expression
- Closed
-
SERVER-48464 Remove {$rand:{const:true}}
- Closed
- is duplicated by
-
SERVER-32928 $rand function
- Closed
- is related to
-
SERVER-22123 Add an option to the $sample stage to specify weights to use in the sampling.
- Backlog
- related to
-
SERVER-43666 Sort by "randVal" is not random
- Closed