Skip to content

Commit

Permalink
Correct error string
Browse files Browse the repository at this point in the history
  • Loading branch information
jeschkies committed Oct 3, 2024
1 parent 43cf741 commit ecc9050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logql/shardmapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func (m ShardMapper) mapVectorAggregationExpr(expr *syntax.VectorAggregationExpr
}, bytesPerShard, nil
case syntax.OpTypeApproxTopK:
if !m.approxTopkSupport {
return nil, 0, fmt.Errorf("approx_topk is not enabled. See -limits.shard_aggregations.")
return nil, 0, fmt.Errorf("approx_topk is not enabled. See -limits.shard_aggregations")
}

// TODO(owen-d): integrate bounded sharding with approx_topk
Expand Down

0 comments on commit ecc9050

Please sign in to comment.