Why does a DQL query with the same filtering return different counts from one with a Segment?

When I run this query without a segment I get 9 records:

fetch dt.davis.problems
| filter event.status == "ACTIVE"
| filter matchesValue(k8s.cluster.name, { "production-01", "production-02", "production-03", "production-04" })

When I run it with a segment that implements the same filter I get 152. The Segment is defined as

k8s.cluster.name in (production-01, production-02, production-03, production-04)

Same timeframe

What are Segments doing that result in more records being returned?

Could you show us the entire query you are doing using segment as filter?

When using the segment I just comment out the last line.

fetch dt.davis.problems
| filter event.status == "ACTIVE"
//| filter matchesValue(k8s.cluster.name, { "production-01", "production-02", "production-03", "production-04" })

Even if I don’t, I’m getting different results.

Tried to replicate in my environments but saw no differences in the result.

Let’s see if others can help.

Thanks for the look!