-
Type:
Question
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.2.7
-
Component/s: Aggregation Framework
-
None
-
Environment:OS X 10.11.5 encountered in mgo (golang) driver, confirmed in Mongo command shell
-
None
-
None
-
None
-
None
-
None
-
None
-
None
SERVER-18427 added $ln, $log, etc. as arithmetic operators in aggregation pipeline
Now running latest stable 3.2.7
Using new operator in aggregation pipeline throws "invalid operator".
Similar for $exp, $log,
Older operators like "$add", "$multiply" are fine.
Has this regressed?
> version()
3.2.7
> db.filings.aggregate( [ {$match: {"cert":90303}},{$project:{ x: { $ln: "$asset" } } } ] )
assert: command failed: { "errmsg" : "exception: invalid operator '$ln'", "code" : 15999, "ok" : 0 } : aggregate failed
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:13:14
assert.commandWorked@src/mongo/shell/assert.js:267:5
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1312:5
@(shell):1:1
2016-07-04T19:05:30.173+0100 E QUERY [thread1] Error: command failed: { "errmsg" : "exception: invalid operator '$ln'", "code" : 15999, "ok" : 0 } : aggregate failed :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:13:14
assert.commandWorked@src/mongo/shell/assert.js:267:5
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1312:5
@(shell):1:1