-
Notifications
You must be signed in to change notification settings - Fork 453
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
Add m3ninx/AllQuery #1478
Add m3ninx/AllQuery #1478
Conversation
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.
LGTM, though not a fan of the name AllQuery
src/m3ninx/search/query/all.go
Outdated
"github.com/m3db/m3/src/m3ninx/search/searcher" | ||
) | ||
|
||
// AllQuery returns a query which matches all the known documents. |
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.
nit: all known documents
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.
cheers
} | ||
|
||
return nil, fmt.Errorf("unknown query: %v", q) | ||
return nil, fmt.Errorf("unknown query: %+v", q) |
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.
Wow, didn't know about this, it's pretty neat 👍
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.
lol :)
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.
Whats the point of this P.R? Is it just so we have an easy way of special-casing these types of queries?
I think it's primarily to make an explicit query type for tag matching v.s. regex matching |
Codecov Report
@@ Coverage Diff @@
## master #1478 +/- ##
========================================
- Coverage 70.9% 70.8% -0.1%
========================================
Files 841 843 +2
Lines 71909 71927 +18
========================================
+ Hits 50988 50994 +6
- Misses 17574 17581 +7
- Partials 3347 3352 +5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1478 +/- ##
========================================
- Coverage 70.9% 70.8% -0.1%
========================================
Files 841 843 +2
Lines 71909 71927 +18
========================================
+ Hits 50988 50994 +6
- Misses 17574 17581 +7
- Partials 3347 3352 +5
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #1478 +/- ##
========================================
- Coverage 70.9% 70.8% -0.1%
========================================
Files 841 843 +2
Lines 71909 71927 +18
========================================
+ Hits 50988 50994 +6
- Misses 17574 17581 +7
- Partials 3347 3352 +5
Continue to review full report at Codecov.
|
Pretty much what you guys are saying - need an explicit way for users of |
No description provided.