Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24891

aggregation pipeline new operators $ln, $log, $exp not in 3.2.7??

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 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
    • 0
    • 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
      

            Assignee:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Reporter:
            bill.chute@acadiant.com Bill Chute
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: