From 7c8200fd65756f664dd9ee4b9fce84d0a38f8e8c Mon Sep 17 00:00:00 2001 From: Sven Rebhan <36194019+srebhan@users.noreply.github.com> Date: Tue, 17 Oct 2023 17:56:51 +0200 Subject: [PATCH] fix(metricpass): Use correct logic expression in benchmark (#14131) --- models/filter_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/filter_test.go b/models/filter_test.go index eab9ccf271d00..dc3084375e712 100644 --- a/models/filter_test.go +++ b/models/filter_test.go @@ -660,8 +660,8 @@ func BenchmarkFilter(b *testing.B) { name: "metric filter complex", filter: Filter{ MetricPass: `"source" in tags` + - ` and fields.exists(f, type(fields[f]) in [int, uint, double] and fields[f] > 20.0)` + - ` and time >= timestamp("2023-04-25T00:00:00Z") - duration("24h")`, + ` && fields.exists(f, type(fields[f]) in [int, uint, double] && fields[f] > 20.0)` + + ` && time >= timestamp("2023-04-25T00:00:00Z") - duration("24h")`, }, metric: testutil.MustMetric("cpu", map[string]string{},