-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Test queries cleanup #20903
Test queries cleanup #20903
Conversation
Replace with non-deprecated equivalents.
`returnsEmptyResult()` can be followed by e.g. `isFullyPushedDown`, so not always can it be replaced with `.result().isEmpty()`.
Replace with non-deprecated equivalents.
Replace with non-deprecated equivalent.
/** | ||
* @deprecated use {@code result().isEmpty()} instead. | ||
*/ | ||
@Deprecated |
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.
You can consider adding QueryAssert and()
to ResultAssert
so you can get back to top level assertions.
Not a great fan - but have seen stuff like this.
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.
i wouldn't want that. ie ResultAssert should not depend on QueryAssert. maybe there wasn't any query in the first place?
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.
looks good to me. one question.
/** | ||
* @deprecated use {@code result().isEmpty()} instead. | ||
*/ | ||
@Deprecated |
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.
re: " Undeprecate returnsEmptyResult() "
when using isFullyPushedDown
the query runs twice with and without pushdown. Why is it useful to match what the result is? e.g. we don't use matches
in push down tests for example.
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.
good question. when i introduced isFullyPushedDown i felt there are cases where it's valuable to assert results, as away to witness that test query is reasonable.
No description provided.