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

#1101: Refactor evalAPPEND to handle leading zeros in value #1107

Merged
merged 4 commits into from
Oct 16, 2024

Conversation

shashi-sah2003
Copy link
Contributor

@shashi-sah2003 shashi-sah2003 commented Oct 16, 2024

Fixes #1101
evalAPPEND function wasn't configured to handle the case with leading zeros and it is treating value "0043" as "43"
I have added that case to handle it properly and producing desired result as of redis

image

@shashi-sah2003
Copy link
Contributor Author

@lucifercr07 @JyotinderSingh pls review this it fixes #1101

Copy link
Collaborator

@JyotinderSingh JyotinderSingh left a comment

Choose a reason for hiding this comment

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

Thanks for this fix, it will be good to have unit and integration tests verifying the functionality so that it doesn't break in the future.

@shashi-sah2003
Copy link
Contributor Author

@JyotinderSingh @lucifercr07 I have added both unit test and integration_test for above append case
plss review

Copy link
Collaborator

@JyotinderSingh JyotinderSingh left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for the fixes and tests @shashi-sah2003! LGTM

@JyotinderSingh JyotinderSingh changed the title Refactor evalAPPEND to handle leading zeros in value #1101: Refactor evalAPPEND to handle leading zeros in value Oct 16, 2024
@JyotinderSingh JyotinderSingh merged commit a4dad48 into DiceDB:master Oct 16, 2024
2 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.

Inconsistent APPEND: The Append cmd on dicedb cli isn't producing same output as redis-cli
2 participants