-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: 8.0.4
-
Component/s: None
-
Query Optimization
-
ALL
-
In the repro provided, we have a query that ends with {$limit: 1}, but the query outputs 2 documents.
The $match at the beginning of the pipeline is always true, but without it I couldn't repro the issue (for now). I think there's some more realistic $match that would also show the problem.
Also based on the explain, I don't think a time-series collection is required. The "command" field shows we received a "skip 1, limit: 1", but then at the end of the optimized pipeline, there's a "skip 1, limit 2". I'm not aware of any specific skip/limit logic for time-series collections, so I've assigned this to QO.
- is related to
-
SERVER-100621 Create PBTs to test basic behavior of common agg stages
-
- Open
-