Skip to content
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

Integrates label replace into sharding code #3132

Merged
merged 5 commits into from
Jan 7, 2021

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Jan 6, 2021

Using label replace in sharded queries willl no longer error in the shardmapper parsing stage and we will avoid running label replaces at the edge to prevent breaking associativity guarantees in upper aggregations. However, the vector expressions within a label replace function can still be sharded.

@codecov-io
Copy link

Codecov Report

Merging #3132 (182ed09) into master (fea5db1) will increase coverage by 0.03%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3132      +/-   ##
==========================================
+ Coverage   63.10%   63.14%   +0.03%     
==========================================
  Files         188      188              
  Lines       16189    16197       +8     
==========================================
+ Hits        10216    10227      +11     
+ Misses       5034     5032       -2     
+ Partials      939      938       -1     
Impacted Files Coverage Δ
pkg/logql/shardmapper.go 80.68% <75.00%> (-0.28%) ⬇️
pkg/logql/ast.go 87.56% <100.00%> (+0.27%) ⬆️
pkg/logql/evaluator.go 90.23% <0.00%> (+0.35%) ⬆️
pkg/logql/test_utils.go 83.21% <0.00%> (+1.45%) ⬆️

@pull-request-size pull-request-size bot added size/S and removed size/M labels Jan 6, 2021
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@owen-d owen-d merged commit c9b85b3 into grafana:master Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants