Skip to content

Commit

Permalink
Update or filtering in group aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyhb committed Jul 17, 2024
1 parent 70b94e8 commit 10e1f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 10e1f69

Please sign in to comment.