Skip to content

SingleBucket aggs need to reduce their bucket's pipelines first#50103

Merged
polyfractal merged 2 commits intoelastic:masterfrom
polyfractal:pipeline_reduce_singlebucket_agg
Dec 12, 2019
Merged

SingleBucket aggs need to reduce their bucket's pipelines first#50103
polyfractal merged 2 commits intoelastic:masterfrom
polyfractal:pipeline_reduce_singlebucket_agg

Conversation

@polyfractal
Copy link
Copy Markdown
Contributor

When decoupling the pipeline reduction from regular agg reduction, MultiBucket aggs were modified to reduce their bucket's pipeline aggs first before reducing the sibling aggs. This modification was missed on SingleBucket aggs, meaning any SingleBucket would fail to reduce any pipeline sub-aggs

The fix is straightforward: single bucket aggs should implement a similar override and reduce the aggs in their bucket first. This commit implements that behavior, and adds a test (using nested as an example).

Closes #50054

When decoupling the pipeline reduction from regular agg reduction,
MultiBucket aggs were modified to reduce their bucket's pipeline
aggs first before reducing the sibling aggs.  This modification
was missed on SingleBucket aggs, meaning any SingleBucket would
fail to reduce any pipeline sub-aggs
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@polyfractal
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

Copy link
Copy Markdown
Contributor

@iverase iverase left a comment

Choose a reason for hiding this comment

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

lgtm

@polyfractal
Copy link
Copy Markdown
Contributor Author

Thanks @iverase!

@polyfractal polyfractal merged commit 7ddd7e0 into elastic:master Dec 12, 2019
polyfractal pushed a commit that referenced this pull request Dec 12, 2019
When decoupling the pipeline reduction from regular agg reduction,
MultiBucket aggs were modified to reduce their bucket's pipeline
aggs first before reducing the sibling aggs.  This modification
was missed on SingleBucket aggs, meaning any SingleBucket would
fail to reduce any pipeline sub-aggs
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
…tic#50103)

When decoupling the pipeline reduction from regular agg reduction,
MultiBucket aggs were modified to reduce their bucket's pipeline
aggs first before reducing the sibling aggs.  This modification
was missed on SingleBucket aggs, meaning any SingleBucket would
fail to reduce any pipeline sub-aggs
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.

[Monitoring] [UI] Multiple logstash pipelines aggregations are broken

4 participants