[SERVER-1138] Array.sum should sum all fields in Array of objects. Created: 20/May/10  Updated: 14/Apr/16  Resolved: 15/Jan/16

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Mathias Stearn Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

If we implement in C++ we may get huge gain in MR perf.

example

Array.sum([

{a:5, b:2}

,

{a:5, b:4, c:1}

]) ==

{a:10, b:6, c:1}

 Comments   
Comment by Eliot Horowitz (Inactive) [ 16/Jan/11 ]

given we're going to be doing a different aggregation framework, not sure if this is needed

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