-
Notifications
You must be signed in to change notification settings - Fork 543
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
MQE: fix issue where subqueries could return series with no points #9998
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
However do we have a test where this happens with a sub-query at not the top of the query. I believe it should be fine, but I think we should have a test for it.
Do you mean something like |
I meant the former, but why not both? ¯_(ツ)_/¯ |
Added in 961f2e5 |
Thanks! |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-9998-to-r314 origin/r314
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 1afa9f6750da32c166a55427f0b9cbea227d67da
# Push it to GitHub
git push --set-upstream origin backport-9998-to-r314
git switch main
# Remove the local backport branch
git branch -D backport-9998-to-r314 Then, create a pull request where the |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-9998-to-r315 origin/r315
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 1afa9f6750da32c166a55427f0b9cbea227d67da
# Push it to GitHub
git push --set-upstream origin backport-9998-to-r315
git switch main
# Remove the local backport branch
git branch -D backport-9998-to-r315 Then, create a pull request where the |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-9998-to-r316 origin/r316
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 1afa9f6750da32c166a55427f0b9cbea227d67da
# Push it to GitHub
git push --set-upstream origin backport-9998-to-r316
git switch main
# Remove the local backport branch
git branch -D backport-9998-to-r316 Then, create a pull request where the |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-9998-to-r317 origin/r317
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 1afa9f6750da32c166a55427f0b9cbea227d67da
# Push it to GitHub
git push --set-upstream origin backport-9998-to-r317
git switch main
# Remove the local backport branch
git branch -D backport-9998-to-r317 Then, create a pull request where the |
What this PR does
This PR fixes an issue where MQE could return invalid results if a subquery was evaluated as the top-level expression for an instant query.
If a series had all of its samples filtered out, MQE would return a series with no samples, for example the query
(avg(foo) > 100)[10m:30s]
could return a result like this:It should instead not return the series at all:
Which issue(s) this PR fixes or relates to
(none)
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.