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

Add support of the command ZDIFF and ZDIFFSTORE #2021

Merged
merged 8 commits into from
Jan 17, 2024

Conversation

MaheshMadushan
Copy link
Contributor

@MaheshMadushan MaheshMadushan commented Jan 15, 2024

Add support of the command ZDIFF and ZDIFFSTORE #1984

  • ZDIFF
  • ZDIFFSTORE

@torwig
Copy link
Contributor

torwig commented Jan 15, 2024

@MaheshMadushan Thank you for the contribution.
You can format the codebase by running ./x.py format.

@MaheshMadushan
Copy link
Contributor Author

@MaheshMadushan Thank you for the contribution. You can format the codebase by running ./x.py format.

Hi @torwig , formatting issue fixed. Thank you.

Add support of the command ZDIFF and ZDIFFSTORE
Copy link

sonarcloud bot commented Jan 15, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@torwig
Copy link
Contributor

torwig commented Jan 15, 2024

@MaheshMadushan LGTM, nicely done!
Could you please add some edge-cases tests,? For example, if the first set is empty, doesn't exist, one of the other sets doesn't exist, etc.

@MaheshMadushan
Copy link
Contributor Author

Hi @torwig . Thanks for the feedback. will add edge test cases for the feature.

src/types/redis_zset.cc Outdated Show resolved Hide resolved
git-hulk
git-hulk previously approved these changes Jan 16, 2024
@torwig
Copy link
Contributor

torwig commented Jan 16, 2024

@git-hulk Are we waiting for additional test in this PR or it will be a separate one?

@git-hulk
Copy link
Member

@git-hulk Are we waiting for additional test in this PR or it will be a separate one?

@torwig ohh, sorry for missing your previous comment. @MaheshMadushan Could you please add the edge cases as @torwig mentioned in this PR?

@git-hulk git-hulk dismissed their stale review January 16, 2024 13:07

Wait for more test cases

@git-hulk git-hulk self-requested a review January 16, 2024 13:07
@MaheshMadushan
Copy link
Contributor Author

@git-hulk Are we waiting for additional test in this PR or it will be a separate one?

@torwig ohh, sorry for missing your previous comment. @MaheshMadushan Could you please add the edge cases as @torwig mentioned in this PR?

will add them asap.

@torwig
Copy link
Contributor

torwig commented Jan 17, 2024

@MaheshMadushan @git-hulk I'm also thinking about one optimization: when the source zset is empty - I guess in this case we can make early return and there is no sense to traverse all the others zsets. Is it correct?

@git-hulk
Copy link
Member

@MaheshMadushan @git-hulk I'm also thinking about one optimization: when the source zset is empty - I guess in this case we can make early return and there is no sense to traverse all the others zsets. Is it correct?

Good point.

@MaheshMadushan
Copy link
Contributor Author

@MaheshMadushan @git-hulk I'm also thinking about one optimization: when the source zset is empty - I guess in this case we can make early return and there is no sense to traverse all the others zsets. Is it correct?

Will fix this.

Copy link

sonarcloud bot commented Jan 17, 2024

Please retry analysis of this Pull-Request directly on SonarCloud

@git-hulk git-hulk merged commit 69b054e into apache:unstable Jan 17, 2024
29 checks passed
@git-hulk
Copy link
Member

@MaheshMadushan Thanks for your contribution.

@MaheshMadushan
Copy link
Contributor Author

@git-hulk @torwig Thank you for feedback.

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.

3 participants