[SERVER-50932] Fix grammar for single argument expressions to accept a singleton array Created: 14/Sep/20 Updated: 29/Oct/23 Resolved: 30/Sep/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.8.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nicholas Zolnierz | Assignee: | Nicholas Zolnierz |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | PM-1749-aggExpr, PM-1749-find-milestone, qopt-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Query 2020-10-05 |
| Participants: |
| Description |
|
There are several aggregation expressions which accept a single expression that must evaluate to a number, for instance. Due to the way our ExpressionNary class hierarchy is implemented, this is equivalent to a singleton array with the one expression (which is actually how we'll serialize such expressions). Need to investigate more thoroughly, but at a minimum these will need to be fixed: $abs, $ceil, $exp, $floor, $ln, $log10, $sqrt |
| Comments |
| Comment by Githook User [ 30/Sep/20 ] |
|
Author: {'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}Message: |