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

$out to time-series doesn't add _id if it's missing

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • 7.0.3
    • None
    • None
    • Storage Execution
    • ALL

    Description

      Seen on 7.0.2-66-g6c4e1e8

      db.aggregate( [{ $documents: [ { mytimefield: new Date() } ] }, { $out: { db: "mydb", coll: "mycoll", timeseries: { timeField: "mytimefield" } } }, ]);
      db.getSiblingDB("mydb").mycoll.find()
      

      ^^ The above prints a single document with just the `mytimefield` field, no `_id`.

      UPDATE: Apparently the _id on inserts comes from the driver.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            felipe.gasper@mongodb.com Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: