-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Query refactoring: AndQueryBuilder and Parser #11628
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
Query refactoring: AndQueryBuilder and Parser #11628
Conversation
public Query toQuery(QueryParseContext parseContext) throws QueryParsingException, IOException { | ||
if (filters.isEmpty()) { | ||
// no filters provided, this should be ignored upstream | ||
return null; |
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.
same as comments in the previous PR, should we be ever returning null here? I tend to think we shouldn't.
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.
Same as in #11629, although unfortunate, this seems necessary at the moment.
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.
ok
left two minor comments, LGTM besides those |
47ed7dc
to
146587f
Compare
Moving the query building functionality from the parser to the builders new toQuery() method analogous to other recent query refactorings. Relates to elastic#10217 Closes elastic#11628
146587f
to
5a16ddc
Compare
Renamed the test case, keeping the |
LGTM |
Query refactoring: AndQueryBuilder and Parser
Moving the query building functionality from the parser to the builders new toQuery() method analogous to other recent query refactorings. Relates to elastic#10217 Closes elastic#11628
…ring-and Query refactoring: AndQueryBuilder and Parser
Moving the query building functionality from the parser to the builders
new toQuery() method analogous to other recent query refactorings.
PR goes agains query-refactoring feature branch.