[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: SERVER-50932 Fix grammar for single argument expressions to accept singleton array
Branch: master
https://github.com/mongodb/mongo/commit/28186581b3fddfc8d24d47a22e15aa05e0881e89

Generated at Thu Feb 08 05:24:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.