Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Subquery #4831
Subquery #4831
Changes from 33 commits
b4a0f85
ed23b8c
687ff22
b30086f
4c74315
0a015fc
7d07e42
68d77cf
d803fe8
7bae5d9
f38ac99
1ea2e3d
f81427d
2afa745
37751ae
c5e2e2c
8ca45ca
683545d
814633c
3c0c12b
24a6966
73dc306
25a1188
70cb12b
5e42e92
6526971
130184b
e0e785d
7dc326d
6f6cd06
a29b240
af74e46
300fdc6
fd1b008
5ff3f1a
6dd9868
2acacd2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This comparison to range vector selectors is confusing. It'd be instant vector expressions.
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.
You can get rid of the
if
below if you write this as:I would also replace all the comments on the few lines above with "Start from the first timestamp at or after `ev.startTimestamp - offset - range` that is a multiple of `interval`.
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.
I was testing this, and noticed that when the start time goes negative because of offset and range, this equation wont hold good.