[SERVER-42756] $multiply operator may return with or w/o an error depending on whether pipeline optimisation is enabled Created: 12/Aug/19 Updated: 29/Oct/23 Resolved: 26/Aug/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.17, 4.2.1, 4.3.1, 4.0.14 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Anton Korshunov | Assignee: | Anton Korshunov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | afz, query-44-grooming | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Requested: |
v4.2, v4.0, v3.6
|
||||||||||||||||
| Sprint: | Query 2019-09-09 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||
| Description |
|
When pipeline optimization is enabled, the arguments to the $multiply operator can be re-arranged. In certain cases, when one of the arguments is Infinity (or NaN), this re-arrangement may result in an error. But when the pipeline optimization is disabled, the very same query returns without an error. For example,
|
| Comments |
| Comment by Githook User [ 10/Dec/19 ] |
|
Author: {'email': 'anton.korshunov@mongodb.com', 'name': 'Anton Korshunov', 'username': 'antkorsh'}Message: (cherry picked from commit aaa9874e04dbc2a4a33aeb7bfad9bee60f7145e0) |
| Comment by Githook User [ 08/Nov/19 ] |
|
Author: {'username': 'antkorsh', 'email': 'anton.korshunov@mongodb.com', 'name': 'Anton Korshunov'}Message: (cherry picked from commit aaa9874e04dbc2a4a33aeb7bfad9bee60f7145e0) |
| Comment by Githook User [ 29/Aug/19 ] |
|
Author: {'name': 'Anton Korshunov', 'username': 'antkorsh', 'email': 'anton.korshunov@mongodb.com'}Message: (cherry picked from commit 6729eaa16ca2794425fd90f034506e8d30a0cb5f) |
| Comment by Githook User [ 28/Aug/19 ] |
|
Author: {'name': 'Anton Korshunov', 'username': 'antkorsh', 'email': 'anton.korshunov@mongodb.com'}Message: |
| Comment by Githook User [ 26/Aug/19 ] |
|
Author: {'name': 'Anton Korshunov', 'email': 'anton.korshunov@mongodb.com', 'username': 'antkorsh'}Message: (cherry picked from commit aaa9874e04dbc2a4a33aeb7bfad9bee60f7145e0) |
| Comment by Githook User [ 26/Aug/19 ] |
|
Author: {'name': 'Anton Korshunov', 'email': 'anton.korshunov@mongodb.com', 'username': 'antkorsh'}Message: |
| Comment by David Storch [ 12/Aug/19 ] |
|
anton.korshunov, can you write a description for this ticket which explains the issue? |