[SERVER-42151] $multiply with NaN operand violates commutativity Created: 10/Jul/19 Updated: 19/Aug/19 Resolved: 19/Aug/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Claire Childs (Inactive) | Assignee: | Anton Korshunov |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | afz, query-44-grooming | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||||||||||||||||
| Sprint: | Query 2019-08-26 | ||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||
| Description |
|
When $multiply is evaluated, if an expression that evaluates to NaN is encountered first then the pipeline errors with the following message:
However if NaN is evaluated second, the command runs and returns results. This means that changing the order of the operands changes whether the command runs or errors, invalidating commutativity. |
| Comments |
| Comment by Anton Korshunov [ 19/Aug/19 ] |
|
Closing as duplicate of |
| Comment by Charlie Swanson [ 16/Aug/19 ] |
|
anton.korshunov stumbled across a similar issue in a build failure recently. Looks like we might have a duplicate in |