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

Quickfix: Percentile combinator #780

Merged
merged 4 commits into from
Sep 23, 2024
Merged

Quickfix: Percentile combinator #780

merged 4 commits into from
Sep 23, 2024

Conversation

trzysiek
Copy link
Member

@trzysiek trzysiek commented Sep 22, 2024

Quickfix to some problem encountered during QA in Kibana. Request saved as a test.

Before:
Screenshot 2024-09-19 at 18 10 02
After: (same as Elastic's, which is at :5602)
Screenshot 2024-09-23 at 15 44 56
Screenshot 2024-09-23 at 15 44 52

@trzysiek trzysiek force-pushed the percentile-combinator branch 3 times, most recently from b64e51c to 3267540 Compare September 23, 2024 12:19
@trzysiek trzysiek marked this pull request as ready for review September 23, 2024 12:24
@trzysiek trzysiek requested a review from a team as a code owner September 23, 2024 12:24
@trzysiek trzysiek changed the title Percentile combinator Quickfix: Percentile combinator Sep 23, 2024
Copy link
Contributor

@jakozaur jakozaur left a comment

Choose a reason for hiding this comment

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

Thanks for fixing, but likely we need to use State and Merge.

// We probably could simplify the code a bit to use "quantile" instead, and just "sum" here.
if strings.HasPrefix(origFunc.Name, "quantiles") {
return origFunc, "sumArray", nil
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Sum of quantiles does not seem correct. I would add quantiles to same condition that creates State and Merge, but likely you need to do some parsing.

@trzysiek trzysiek force-pushed the percentile-combinator branch from dcc2c68 to dc45c02 Compare September 23, 2024 13:49
@trzysiek trzysiek force-pushed the percentile-combinator branch from dc45c02 to 4e8b692 Compare September 23, 2024 13:50
@jakozaur jakozaur enabled auto-merge September 23, 2024 13:52
@jakozaur jakozaur added this pull request to the merge queue Sep 23, 2024
Merged via the queue into main with commit 245911e Sep 23, 2024
5 checks passed
@jakozaur jakozaur deleted the percentile-combinator branch September 23, 2024 13:58
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