-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
ALL
Started work on SERVER-99695 where I added a test called ranked_fusion_sample.js that tests different variations of ranked selection pipelines that include the $sample stage.
Observed that the following command fails when it should work:
assert.commandWorked(db.runCommand({ aggregate: jsTestName(), pipeline: [{$rankFusion: {input: {pipelines: {sampled: [{$sample: {size: 4}}, {$sort: {i: 1}}]}}}}], cursor: {}}));
It fails with
Location40218: query requires sort key metadata, but it is not available
See SERVER-99695's Draft PR for the full JS test.
- is depended on by
-
SERVER-99695 Support for $sample in $rankFusion
- Blocked
- is related to
-
SERVER-99695 Support for $sample in $rankFusion
- Blocked