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

Fixes @ modifier when splitting queries by time. #206

Merged
merged 3 commits into from Sep 8, 2021
Merged

Fixes @ modifier when splitting queries by time. #206

merged 3 commits into from Sep 8, 2021

Conversation

cyriltovena
Copy link
Contributor

This will replace start and end at (@) modifier with the actual constant values based on the original queries.
Meaning subqueries will not wrongly use their own query start and end time.

see cortexproject/cortex#4463

Signed-off-by: Cyril Tovena cyril.tovena@gmail.com

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

This will replace `start` and `end` at (`@`) modifier with the actual constant values based on the original queries.
Meaning subqueries will not wrongly use their own query start and end time.

see  cortexproject/cortex#4463

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

Nice!

@bboreham bboreham enabled auto-merge (squash) September 8, 2021 17:41
@bboreham bboreham merged commit 7421611 into main Sep 8, 2021
@bboreham bboreham deleted the fix4463 branch September 8, 2021 18:04
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Brilliant work!

cyriltovena added a commit that referenced this pull request Sep 20, 2021
This was introduced by #206, this is because the frontend will by default convert any error into 500.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
pracucci pushed a commit that referenced this pull request Sep 20, 2021
This was introduced by #206, this is because the frontend will by default convert any error into 500.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants