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

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

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 7.0.3
    • Component/s: None
    • None
    • Storage Execution
    • ALL

      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.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            felipe.gasper@mongodb.com Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: