[SERVER-8568] $sqrt operator for the Aggregation Framework Created: 14/Feb/13  Updated: 05/Feb/16  Resolved: 01/Jul/15

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 3.1.6

Type: New Feature Priority: Major - P3
Reporter: Gianfranco Palumbo Assignee: James Cohan
Resolution: Done Votes: 10
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-7463 $percentile aggregation accumulator Backlog
related to CSHARP-1402 $sqrt operator for the Aggregation Fr... Closed
is related to DRIVERS-234 Aggregation Builder Support for 3.2 Closed
Backwards Compatibility: Fully Compatible
Sprint: Quint Iteration 5, Quint Iteration 6
Participants:

 Description   

$sqrt calculates the square root



 Comments   
Comment by Githook User [ 01/Jul/15 ]

Author:

{u'username': u'jamesfcohan', u'name': u'James Cohan', u'email': u'james.cohan@10gen.com'}

Message: SERVER-8568 Add $sqrt aggregation expression
Branch: master
https://github.com/mongodb/mongo/commit/4f4e36b69bfd6ea8615e2c0786a4d1dbca502a74

Comment by James Cohan [ 30/Jun/15 ]

Failed to compile on solaris. It should be a simple fix.

Comment by Githook User [ 30/Jun/15 ]

Author:

{u'username': u'jamesfcohan', u'name': u'James Cohan', u'email': u'james.cohan@10gen.com'}

Message: Revert "SERVER-8568 Add $sqrt aggregation expression"

This reverts commit 4423ee5c495bf22646de6cb58b60de2a1d9330f4.
Branch: master
https://github.com/mongodb/mongo/commit/9710407506b12128c09915bd2e30b8dc069f8b40

Comment by James Cohan [ 30/Jun/15 ]

Need to document new $sqrt expression.

$sqrt takes a numeric argument greater than or equal to 0. It always returns a double. Null values remain null and NaN input remains NaN. It will error on nonnumeric, non-null, and negative input.

Comment by Githook User [ 30/Jun/15 ]

Author:

{u'username': u'jamesfcohan', u'name': u'James Cohan', u'email': u'james.cohan@10gen.com'}

Message: SERVER-8568 Add $sqrt aggregation expression
Branch: master
https://github.com/mongodb/mongo/commit/4423ee5c495bf22646de6cb58b60de2a1d9330f4

Comment by Derick Rethans [ 05/Aug/13 ]

https://github.com/derickr/mongo/tree/aggregation-framework-new-operators-pow-round-sqrt

Generated at Thu Feb 08 03:17:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.