Skip to content

Commit

Permalink
pr feedback: only dispatch to bloom querier when line filters exist
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Diehl <ow.diehl@gmail.com>
  • Loading branch information
owen-d committed Apr 29, 2024
1 parent 82923e7 commit 7b2f72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/indexgateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ func (g *Gateway) boundedShards(
filtered := refs

// 2) filter via blooms if enabled
if g.bloomQuerier != nil {
if g.bloomQuerier != nil && len(syntax.ExtractLineFilters(p.Plan().AST)) > 0 {
filtered, err = g.bloomQuerier.FilterChunkRefs(ctx, instanceID, req.From, req.Through, refs, p.Plan())
if err != nil {
return err
Expand Down

0 comments on commit 7b2f72e

Please sign in to comment.