mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-30 15:22:07 +00:00
app/vmselect/promql: check for binary operation in case-insensitive manner when deciding which side of the operation to perform the first
PromQL and MetricsQL operators are case-insensitive
This commit is contained in:
parent
a02dde6cc7
commit
784cdcb080
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ func evalExpr(ec *EvalConfig, e metricsql.Expr) ([]*timeseries, error) {
|
|||
}
|
||||
var err error
|
||||
var tssLeft, tssRight []*timeseries
|
||||
switch be.Op {
|
||||
switch strings.ToLower(be.Op) {
|
||||
case "and", "if":
|
||||
// Fetch right-side series at first, since the left side of `and` and `if` operator
|
||||
// usually contains lower number of time series. This should produce more specific label filters
|
||||
|
|
Loading…
Reference in a new issue