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

Remove Collector implementation from BucketCollector #88444

Merged
merged 5 commits into from
Jul 18, 2022

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Jul 11, 2022

This PR removes the implementation of the Collector interface from BucketCollector. Instead the BucketCollector has now a method called #asCollector that returns the current BucketCollector wrapped as a Collector.

@iverase iverase requested a review from not-napoleon July 11, 2022 15:28
@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jul 11, 2022
@elasticmachine
Copy link
Collaborator

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

@@ -696,7 +696,7 @@ The API returns the following result:
]
},
{
"name": "MultiBucketCollector: [[my_scoped_agg, my_global_agg]]",
"name": "BucketCollectorWrapper: [BucketCollectorWrapper[bucketCollector=[my_scoped_agg, my_global_agg]]]",
"reason": "aggregation",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

umm, this might be the most problematic part of this change?

Copy link
Member

@not-napoleon not-napoleon left a comment

Choose a reason for hiding this comment

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

LGTM

@iverase
Copy link
Contributor Author

iverase commented Jul 18, 2022

@elasticmachine update branch

@iverase iverase merged commit 04bdefd into elastic:master Jul 18, 2022
@iverase iverase deleted the BucketCollector branch July 18, 2022 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants