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

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: