-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Minor Change
-
151
Currently, $rank and $denseRank treat null and missing differently, which causes a field to change from null to missing, or vice versa to a rank increment. This is not consistent with $sort behavior, which treats null and missing the same. This causes the rank result to be unstable.
The SBE implementation currently copies the Classic semantics. When we update the semantics, we should update in both engines.
- is depended on by
-
COMPASS-7643 Investigate changes in SERVER-82168: Make window function $rank/$denseRank consistent with sort order
- Closed
-
TOOLS-3473 Investigate changes in SERVER-82168: Make window function $rank/$denseRank consistent with sort order
- Closed