Investigate adding support for the following in MongoSQL : http://docs.mongodb.org/manual/reference/operator/aggregation-arithmetic/
Adding support for this feature request would require splitting the given arithmetic expression into pre-grouping and post-grouping projections ( i.e. $project pipeline operator definitions ) inside AggregationHelper#prepareAndPerformGroupBy()
method. However, the implementation this method has become quite complex (in order to support various MongoSQL -> MongoJS translations that involve Aggregation Framework), thus introducing the above enhancement without breaking existing functionality is a complex task.
Given that Query Analyzer now supports MongoJS queries (i.e. user can directly enter such queries), it is better for the time being to defer this request and keep the AggregationHelper implementation unchanged.
Issue #13091 |
Closed |
Won't Fix |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
Adding support for this feature request would require splitting the given arithmetic expression into pre-grouping and post-grouping projections ( i.e. $project pipeline operator definitions ) inside
AggregationHelper#prepareAndPerformGroupBy()
method. However, the implementation this method has become quite complex (in order to support various MongoSQL -> MongoJS translations that involve Aggregation Framework), thus introducing the above enhancement without breaking existing functionality is a complex task.Given that Query Analyzer now supports MongoJS queries (i.e. user can directly enter such queries), it is better for the time being to defer this request and keep the AggregationHelper implementation unchanged.