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

feat: implement ZINTERCARD #1197

Merged
merged 5 commits into from May 13, 2023

Conversation

daniel-shimon
Copy link
Contributor

@daniel-shimon daniel-shimon commented May 9, 2023

Closes #1188 and fixes #832

@daniel-shimon daniel-shimon marked this pull request as draft May 9, 2023 20:03
.vscode/launch.json Outdated Show resolved Hide resolved
src/server/zset_family.cc Outdated Show resolved Hide resolved
src/server/zset_family.cc Outdated Show resolved Hide resolved
Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

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

Daniel, what is the fix for INTERSTORE bug?

@daniel-shimon
Copy link
Contributor Author

@romange in the first commit

@daniel-shimon daniel-shimon force-pushed the implement-zintercard branch 3 times, most recently from fb17e69 to 1f1df9f Compare May 13, 2023 08:17
@daniel-shimon daniel-shimon marked this pull request as ready for review May 13, 2023 08:17
src/server/zset_family.cc Outdated Show resolved Hide resolved
Copy link
Collaborator

@romange romange 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! Just one last thing to fix.

When a shard only contains the dest key, it returned an empty map which causes the resulting intersection to be empty
Initial implementation without LIMIT
Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

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

@daniel-shimon, thanks, that looks great! 👍🏼

@romange romange merged commit cb80b3f into dragonflydb:main May 13, 2023
6 checks passed
romange pushed a commit that referenced this pull request Jun 1, 2023
* fix: ZINTERSTORE bug

When a shard only contains the dest key, it returned an empty map which causes the resulting intersection to be empty

* chore(vscode): Add gdb launch setting

* feat: Implement ZINTERCARD

Initial implementation without LIMIT

* feat: Implement limit for ZINTERCARD

* feat: Handle sets in ZINTER* commands
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.

implement ZINTERCARD ZINTERSTORE doesn't work as expected
3 participants