-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Optimizes SampleExpr to remove unnecessary line_format. #3065
Optimizes SampleExpr to remove unnecessary line_format. #3065
Conversation
When doing count_over_time and rate(), it doesn't make sense to have a line_format since you're counting line, you don't really care about what the line contains. At the same time this set the foundation of for further optimization, like parsing only required labels during label parsing. I've also found a bug where `topk by(foo) (1...` where not correctly parsed. Signed-off-by: Cyril Tovena <[email protected]>
I think it's actually for all range vector operation, will make a change to support them all |
Codecov Report
@@ Coverage Diff @@
## master #3065 +/- ##
==========================================
+ Coverage 62.88% 62.91% +0.02%
==========================================
Files 186 187 +1
Lines 15949 16014 +65
==========================================
+ Hits 10030 10075 +45
- Misses 4987 5007 +20
Partials 932 932
|
Except for bytes one which count bytes in lines. Signed-off-by: Cyril Tovena <[email protected]>
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 then lgtm
Co-authored-by: Owen Diehl <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3065 +/- ##
==========================================
+ Coverage 62.88% 63.03% +0.14%
==========================================
Files 186 187 +1
Lines 15949 16014 +65
==========================================
+ Hits 10030 10094 +64
- Misses 4987 4989 +2
+ Partials 932 931 -1
|
When doing count_over_time and rate(), it doesn't make sense to have a line_format since you're counting line, you don't really care about what the line contains.
At the same time this set the foundation of for further optimization, like parsing only required labels during label parsing.
I've also found a bug where
topk by(foo) (1...
where not correctly parsed.Signed-off-by: Cyril Tovena [email protected]