Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[r313] MQE: subqueries #9684

Merged
merged 1 commit into from
Oct 21, 2024
Merged

[r313] MQE: subqueries #9684

merged 1 commit into from
Oct 21, 2024

Conversation

grafanabot
Copy link
Contributor

Backport 3031f23 from #9664

* Enable upstream tests

* Add benchmark

* Introduce feature toggle

* Don't assume all operators are running at the top level of a query

* Add ability to reuse an existing point slice for a ring buffer

* Add `Release` method to ring buffers

* Introduce range query tests

* Bring in TestSubquerySelector from Prometheus

* Change `RangeVectorOperator.NextStepSamples` to return ring buffers rather than receive them

* Refactor `TestSubqueries`

* Initial (largely working) implementation

* Fix handling of @

* Enable newly supported upstream test cases

* Add further benchmark

* Add changelog entry

* Address PR feedback: clarify comments

Co-authored-by: Joshua Hesketh <[email protected]>

* Add tests for ring buffer `Release` implementations

* Address PR feedback: update comment to match new behaviour

* Address PR feedback: fix indentation

* Expand native histogram tests

* Add test for deeply nested subqueries with changing step.

* Run test cases in TestSubqueries against Prometheus' engine too.

---------

Co-authored-by: Joshua Hesketh <[email protected]>
(cherry picked from commit 3031f23)
@grafanabot grafanabot requested review from tacole02 and a team as code owners October 21, 2024 02:20
@charleskorn charleskorn enabled auto-merge (squash) October 21, 2024 02:21
@charleskorn charleskorn merged commit 7f49d3d into r313 Oct 21, 2024
31 checks passed
@charleskorn charleskorn deleted the backport-9664-to-r313 branch October 21, 2024 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants