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

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

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: 3.2.7
    • Fix Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Environment:
      OS X 10.11.5 encountered in mgo (golang) driver, confirmed in Mongo command shell

      Description

      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
      

        Attachments

          Activity

            People

            Assignee:
            stennie Stennie Steneker
            Reporter:
            bill.chute@acadiant.com Bill Chute
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: