-
Notifications
You must be signed in to change notification settings - Fork 840
Closed
Description
Describe the bug
The query-frontend component currently can split query_ranges by time. (1d)
This allows to parallelize and runs queries faster, however with the recent addition of the @ modifier, splitting queries by times can create incorrect queries specially with the uses of the start() and end(), each sub queries will evaluate it's own start and end modifier.
To Reproduce
Steps to reproduce the behavior:
Run a queries that uses the @ modifier with the start/end() syntax.
http_requests_total @ start()
rate(http_requests_total[5m] @ end())
The result is incorrect compare to Prometheus.
Expected behavior
The frontend should spot those queries before splitting by time and rewrite them using constant value of @ modifier timestamp. @codesome Suggested this solution.
Storage Engine
- Blocks
- Chunks
Metadata
Metadata
Assignees
Labels
No labels