[SERVER-82070] Classic window function $stdDevSamp handles empty window frame incorrectly Created: 11/Oct/23 Updated: 05/Feb/24 Resolved: 11/Oct/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.1, 7.2.0-rc0, 5.0.22, 7.0.3, 6.0.12 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Rui Liu | Assignee: | Rui Liu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v7.1, v7.0, v6.0, v5.0
|
||||||||
| Participants: | |||||||||
| Linked BF Score: | 150 | ||||||||
| Description |
|
When the number of documents in the window frame is 0, the adjusted count for $stdDevSamp might be negative, and we should return NULL in this case. $covarianceSamp handles this correctly. |
| Comments |
| Comment by Githook User [ 12/Oct/23 ] |
|
Author: {'name': 'Rui Liu', 'email': 'lriuui0x0@gmail.com', 'username': 'lriuui0x0'}Message: (cherry picked from commit 075e35514569813fad6dfafb0554781cfd109959) |
| Comment by Githook User [ 12/Oct/23 ] |
|
Author: {'name': 'Rui Liu', 'email': 'lriuui0x0@gmail.com', 'username': 'lriuui0x0'}Message: (cherry picked from commit 075e35514569813fad6dfafb0554781cfd109959) |
| Comment by Githook User [ 12/Oct/23 ] |
|
Author: {'name': 'Rui Liu', 'email': 'lriuui0x0@gmail.com', 'username': 'lriuui0x0'}Message: (cherry picked from commit 075e35514569813fad6dfafb0554781cfd109959) |
| Comment by Githook User [ 12/Oct/23 ] |
|
Author: {'name': 'Rui Liu', 'email': 'lriuui0x0@gmail.com', 'username': 'lriuui0x0'}Message: (cherry picked from commit 075e35514569813fad6dfafb0554781cfd109959) |
| Comment by Githook User [ 11/Oct/23 ] |
|
Author: {'name': 'Rui Liu', 'email': 'lriuui0x0@gmail.com', 'username': 'lriuui0x0'}Message: |