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

EZP-27458: Limited stats aggregation to documents which contain aggregation target field #202

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

adamwojs
Copy link
Member

@adamwojs adamwojs commented Oct 26, 2020

JIRA: EZP-27458

Description

Currently stats aggregation while computing count value take into account all examined documents instead of limit documents to those with really influence result. 

In other words we expect that result avg(filed) = sum(field) / count(field). Issue detected by https://travis-ci.com/github/ezsystems/ezplatform-kernel/jobs/407011420 (ezsystems/ezplatform-kernel#129)

@adamwojs adamwojs self-assigned this Oct 26, 2020
@alongosz alongosz changed the title EZP-27458: Limit stats aggregation to documents which contain aggregation target field EZP-27458: Limited stats aggregation to documents which contain aggregation target field Oct 26, 2020
@adamwojs adamwojs changed the base branch from master to 3.2 October 30, 2020 08:55
Copy link
Member

@mnocon mnocon left a comment

Choose a reason for hiding this comment

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

Verified that the issue no longer occurs. Approved!

@lserwatka lserwatka merged commit cfaae0a into 3.2 Nov 2, 2020
@lserwatka lserwatka deleted the stats_agg_fix branch November 2, 2020 15:27
@lserwatka
Copy link
Member

@adamwojs could you merge it up?

@adamwojs
Copy link
Member Author

adamwojs commented Nov 2, 2020

@lserwatka Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

6 participants