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

$in with empty array should find nothing #626

Merged
merged 5 commits into from
Nov 10, 2023
Merged

$in with empty array should find nothing #626

merged 5 commits into from
Nov 10, 2023

Conversation

Yuqi-Du
Copy link
Contributor

@Yuqi-Du Yuqi-Du commented Nov 9, 2023

What this PR does:
$in with empty array should find nothing

Which issue(s) this PR fixes:
#625

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@Yuqi-Du Yuqi-Du requested a review from a team as a code owner November 9, 2023 00:18
@Yuqi-Du Yuqi-Du merged commit 6f9d8ab into main Nov 10, 2023
3 checks passed
@Yuqi-Du Yuqi-Du deleted the fix_in_and_or branch November 10, 2023 22:55
.body("data.documents", hasSize(1))
.body("status", is(nullValue()))
.body("errors", is(nullValue()))
.body("data.documents[0]", jsonEquals(expected1));
Copy link
Collaborator

Choose a reason for hiding this comment

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

It might be better to have a test case that returns no results here, because there's no way of telling whether the document expected1 matched the first condition in $or, the 2nd, or both.

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

One minor comment, but LGTM overall

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