Skip to content

REST tests for avg/max/min/sum_bucket aggs #87009

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

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented May 20, 2022

Adds REST layer tests for the avg_bucket, max_bucket, min_bucket,
and sum_bucket pipeline aggregations. This gives us forwards and
backwards compatibility tests for these aggs as well as mixed version
cluster tests for these aggs.

Relates to #26220

@nik9000 nik9000 added >test Issues or PRs that are addressing/adding tests :Analytics/Aggregations Aggregations v8.3.0 labels May 20, 2022
@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label May 20, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@sethmlarson sethmlarson added the Team:Clients Meta label for clients team label May 20, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/clients-team (Team:Clients)

Adds REST layer tests for the `avg_bucket`, `max_bucket`, `min_bucket`,
and `sum_bucket` pipeline aggregations. This gives us forwards and
backwards compatibility tests for these aggs as well as mixed version
cluster tests for these aggs.

Relates to elastic#26220
Copy link
Contributor

@csoulios csoulios left a comment

Choose a reason for hiding this comment

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

LGTM

I think tests cover the happy path and I wonder if we should test edge or failing cases, such as:

On the other hand, testing the happy path is much better than what we had. We can add more tests to cover edge cases with another PR.

body:
size: 0
aggs:
"@timestamp":
Copy link
Contributor

Choose a reason for hiding this comment

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

In the old times, the most used bucket aggregation was the terms agg. Now is the time series era :) 👍

@nik9000
Copy link
Member Author

nik9000 commented Jun 16, 2022

On the other hand, testing the happy path is much better than what we had. We can add more tests to cover edge cases with another PR.

Yeah. That'd be good too.

@nik9000 nik9000 merged commit 5b525a2 into elastic:master Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:Clients Meta label for clients team >test Issues or PRs that are addressing/adding tests v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants