Skip to content

ZRANGE BYLEX: Fix infinities processing, and reverse exclusions too with REV commands. #1214

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

Merged
merged 5 commits into from
May 27, 2025

Conversation

prvyk
Copy link
Contributor

@prvyk prvyk commented May 22, 2025

ZRANGEBYLEX + is supposed to be 'positive infinity' yet it was processed same as '-'. Fix and add tests.

Also, exclusions ('[' and '(') weren't reversed, fix, test already checked this, but looked at the wrong result ("ZRANGE board [g (aaa BYLEX REV" command should return g as well).

@prvyk prvyk changed the title ZRANGE BYLEX: Fix infinities processing, and invert exclusions when processing. ZRANGE BYLEX: Fix infinities processing, and reverse exclusions too with REV commands. May 22, 2025
@badrishc badrishc requested a review from TalZaccai May 22, 2025 16:54
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.

Looks good overall, thanks!

@prvyk prvyk force-pushed the zrangebylexmax branch from b6a81d1 to 0921485 Compare May 23, 2025 01:40
@prvyk prvyk force-pushed the zrangebylexmax branch from 04c0cb9 to 0e19fc0 Compare May 23, 2025 08:59
@TalZaccai TalZaccai merged commit 1529540 into microsoft:main May 27, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants