fix(metricpass): Use correct logic expression in benchmark (#14131)

This commit is contained in:
Sven Rebhan 2023-10-17 17:56:51 +02:00 committed by GitHub
parent 9c8c06eebf
commit 7c8200fd65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -660,8 +660,8 @@ func BenchmarkFilter(b *testing.B) {
name: "metric filter complex", name: "metric filter complex",
filter: Filter{ filter: Filter{
MetricPass: `"source" in tags` + MetricPass: `"source" in tags` +
` and fields.exists(f, type(fields[f]) in [int, uint, double] and fields[f] > 20.0)` + ` && fields.exists(f, type(fields[f]) in [int, uint, double] && fields[f] > 20.0)` +
` and time >= timestamp("2023-04-25T00:00:00Z") - duration("24h")`, ` && time >= timestamp("2023-04-25T00:00:00Z") - duration("24h")`,
}, },
metric: testutil.MustMetric("cpu", metric: testutil.MustMetric("cpu",
map[string]string{}, map[string]string{},