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

Add instant splitter metrics stats #2632

Merged
merged 1 commit into from
Aug 3, 2022
Merged

Conversation

ssncferreira
Copy link
Contributor

What this PR does

Add instant splitting specific metric stats for instant query time splitting.

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

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

package astmapper

type InstantSplitterStats struct {
splitQueries int
Copy link
Contributor Author

@ssncferreira ssncferreira Aug 2, 2022

Choose a reason for hiding this comment

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

In addition to splitQueries we can also add a more detailed reason for a no operation. There are three possible causes:

  1. range interval smaller than configured split by time
  2. the call is a subquery
  3. none of the query expressions is splittable. This counter would be more difficult to keep track off because of the recursive logic on MapExpr

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks a great idea. We can do in a follow up PR or add it to the TODO list in the issue and keep it for later. Up to you!

@ssncferreira ssncferreira marked this pull request as ready for review August 2, 2022 14:03
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.

LGTM!

@pracucci pracucci merged commit 3c4058f into main Aug 3, 2022
@pracucci pracucci deleted the instant_query_splitting_stats branch August 3, 2022 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants