[SERVER-81889] SBE $rank/$denseRank implementation compares empty field incorrectly Created: 05/Oct/23  Updated: 29/Oct/23  Resolved: 13/Oct/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Rui Liu Assignee: Rui Liu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 147

 Description   

Currently rank functions in SBE needs to keep the last value in the SBE Array, which cannot hold Nothing. We need a different flag to determine whether the last value is Nothing or not.



 Comments   
Comment by Githook User [ 13/Oct/23 ]

Author:

{'name': 'Rui Liu', 'email': 'lriuui0x0@gmail.com', 'username': 'lriuui0x0'}

Message: SERVER-81889 Fix SBE $rank/$denseRank comparison with empty fields
Branch: master
https://github.com/mongodb/mongo/commit/f28bb1031d1956e41856c554b3407870803b7de0

Comment by Githook User [ 05/Oct/23 ]

Author:

{'name': 'Rui Liu', 'email': 'lriuui0x0@gmail.com', 'username': 'lriuui0x0'}

Message: SERVER-81889 Promote Nothing to Null for SBE $rank/$denseRank input
Branch: master
https://github.com/mongodb/mongo/commit/5cab129eb5c35c3ad61ed9e5156539556d85dcd1

Generated at Thu Feb 08 06:47:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.