Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support WITHSCORE option in ZRANK, ZREVRANK commands #419

Merged
merged 5 commits into from
May 29, 2024

Conversation

yrajas
Copy link
Contributor

@yrajas yrajas commented May 24, 2024

Problem
Currently, processing accepts the WITHSCORE parameter to ZRANK and ZREVRANK commands, but the result is not built with the score if the parameter is passed in.

Fix
Modified the ZRANK, ZREVRANK implementation to have the ability to provide either a single rank integer output or an array output based on presence of WITHSCORE parameter.

Copy link
Contributor

@TalZaccai TalZaccai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@TalZaccai TalZaccai merged commit b34fc99 into microsoft:main May 29, 2024
23 checks passed
@yrajas yrajas deleted the yrajas/zrankwithscore branch June 21, 2024 18:27
chyin6 pushed a commit to jusjin-org/garnet that referenced this pull request Jul 2, 2024
* Draft changes.

* Support WITHSCORE in ZRANK, ZREVRANK.

---------

Co-authored-by: Yoganand Rajasekaran <yrajas@ntdev.microsoft.com>
Co-authored-by: Badrish Chandramouli <badrishc@microsoft.com>
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants