-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
src/main/java/io/stargate/sgv2/jsonapi/service/operation/model/impl/ExpressionBuilder.java
Outdated
Show resolved
Hide resolved
src/main/java/io/stargate/sgv2/jsonapi/service/operation/model/impl/ExpressionBuilder.java
Show resolved
Hide resolved
src/main/java/io/stargate/sgv2/jsonapi/service/operation/model/impl/ExpressionBuilder.java
Outdated
Show resolved
Hide resolved
.body("data.documents", hasSize(1)) | ||
.body("status", is(nullValue())) | ||
.body("errors", is(nullValue())) | ||
.body("data.documents[0]", jsonEquals(expected1)); |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
What this PR does:
$in with empty array should find nothing
Which issue(s) this PR fixes:
#625
Checklist