From 10e1f69a700fedd96243d6066c610ec6fdfe86bc Mon Sep 17 00:00:00 2001 From: Tony Holdstock-Brown Date: Wed, 17 Jul 2024 08:07:17 -0700 Subject: [PATCH] Update or filtering in group aggregation --- expr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expr.go b/expr.go index 53f21c3..c87a54e 100644 --- a/expr.go +++ b/expr.go @@ -308,7 +308,7 @@ func (a *aggregator) AggregateMatch(ctx context.Context, data map[string]any) ([ // matching engine, so we cannot use group sizes if the expr part // has an OR. for _, i := range found[groupID] { - if len(i.Parsed.Root.Ors) == 0 { + if len(i.Parsed.Root.Ors) > 0 { // for now, mark this as viable as it had an OR result = append(result, i) }