promql-engine icon indicating copy to clipboard operation
promql-engine copied to clipboard

engine: fix range query duplicate label handling

Open MichaHoffmann opened this issue 1 year ago • 1 comments

Prometheus seems to care about duplicate samples for label only during the same timestamp. Since our operators might return samples for one result in two different series we need to merge them to one result again.

MichaHoffmann avatar Jan 14 '24 13:01 MichaHoffmann

I would recommend that we do the mapping between different series IDs in the dedup checking operator. This way two series with the same ID would get mapped to a single ID and we will not break the operator contract.

fpetkovski avatar Jan 16 '24 14:01 fpetkovski