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

Support <selector> <range> <filters> for aggregation #1526

Merged
merged 1 commit into from
Jan 15, 2020

Conversation

codesome
Copy link
Member

Fixes #1429

I could not find a way to do it without duplicating the stuff in logExpr. logExpr and logRangeExprExt would need to be in sync always.

Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
@@ -386,6 +386,125 @@ func TestParse(t *testing.T) {
nil,
newString("5")),
},
{
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These test cases are just a copy of the above with the duration shifted near the selector.

@cyriltovena cyriltovena self-assigned this Jan 15, 2020
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Awesome work ! Thanks !

I'm happy with the duplication on the yacc file since it generated not too ugly

@cyriltovena cyriltovena merged commit 1761db6 into grafana:master Jan 15, 2020
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.

Range operator position is too strict
2 participants