Skip to content

Implement the $sum aggregation operator #2013

@b1ron

Description

After #2226.

https://www.mongodb.com/docs/v6.0/reference/operator/aggregation/sum/

DoD:

  • only for $group stage (as everything else is not implemented yet)
  • consider overflow cases
  • regular test cases: $v already includes non-mixed (only numeric) and mixed cases (e.g. numeric + non-numeric, arrays etc)
  • constant test case: ({ $sum: 1 })

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

code/featureSome user-visible feature is not implemented yet

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions