-
Notifications
You must be signed in to change notification settings - Fork 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
fix(search_family): Add options test for the FT.AGGREGATE command #4479
base: main
Are you sure you want to change the base?
fix(search_family): Add options test for the FT.AGGREGATE command #4479
Conversation
e1d3c11
to
3570612
Compare
@@ -119,7 +119,7 @@ struct CmdArgParser { | |||
|
|||
// Check if the next value is equal to a specific tag. If equal, its consumed. | |||
template <class... Args> bool Check(std::string_view tag, Args*... args) { | |||
if (cur_i_ + sizeof...(Args) >= args_.size()) | |||
if (cur_i_ + sizeof...(Args) >= args_.size() || error_) |
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.
Why?
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 think that if an error occurred previously during parsing, why are we still returning true for parser->Check("TAG")
, for example? It should simply skip all checks
Signed-off-by: Stepan Bagritsevich <[email protected]>
Signed-off-by: Stepan Bagritsevich <[email protected]>
Signed-off-by: Stepan Bagritsevich <[email protected]>
Signed-off-by: Stepan Bagritsevich <[email protected]>
3570612
to
4926c1d
Compare
Signed-off-by: Stepan Bagritsevich <[email protected]>
4926c1d
to
a047d47
Compare
related to the #4204
It was a bad decision to use it because, in some cases, we were returning an error with
builder->SendError(...)
. However, in those cases, we were not handling parser errors withparser->Error()
. As a result, debug builds were crashing because of this check:Now, we ensure that parsing errors are processed in all cases.
3. Add options test for the
FT.AGGREGATE
command