[SERVER-37731] Why $pow results in NaN when every other operation illegal math operation causes error? Created: 24/Oct/18 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Raghuram Krishnaswami | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | mql-semantics | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Optimization
|
| Participants: |
| Description |
|
As given here,
|
| Comments |
| Comment by Ramon Fernandez Marina [ 26/Oct/18 ] | |
|
Thanks for your report krish.raghuram. We've sent this to the Query team for evaluation. If it gets folded into SERVER-27190 please watch that ticket for further updates. Regards, | |
| Comment by Raghuram Krishnaswami [ 24/Oct/18 ] | |
|
Umm... I clicked "create" before completing the description. And Im not able to edit the issue description either... So I'll just leave the description here... -------------------------------------------------------------------------------------------------------------- As given here
results in a NaN value. Every other illegal math operation, such as
result in an error. Wouldn't it be more consistent to make the $pow also an error? PS : The issue was already mentioned before, in SERVER-27190. But it was brought up as a use-case, and was not the main point of focus. |