[SERVER-42616] $stdDev accumulator can return imprecise results when spilling to disk Created: 02/Aug/19  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: afz, query-44-grooming
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-37429 $avg of Infinity and null is NaN on d... Backlog
is related to SERVER-37672 Re-enable agg fuzzer on debug builds Closed
Assigned Teams:
Query Execution
Operating System: ALL
Participants:
Linked BF Score: 48

 Description   

When merging intermediate results which have spilled to disk, the $stdDev accumulator executes the variance calculation involving some arithmetic over the previously calculated mean and . If the mean is a precise double, then this could result in precision loss.


Generated at Thu Feb 08 05:00:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.