[SERVER-57868] $merge stage does not require "coll" field Created: 21/Jun/21  Updated: 29/Oct/23  Resolved: 09/Jul/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Alice Thum Assignee: Alice Doherty
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Run a $merge stage with the following form:

{
  "$merge": {
    "into": {
      "db": "foo"
    }
  }
}

Outputs documents to the "foo." collection.

Sprint: Query Optimization 2021-07-12
Participants:

 Description   

When running a $merge stage with no "coll" specified, $merge does not return an error. However, this field should be required.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 09/Jul/21 ]

Author:

{'name': 'Alice Doherty', 'email': 'alice.doherty@mongodb.com', 'username': 'alicedoherty'}

Message: SERVER-57868 $merge stage does not require "coll" field
Branch: master
https://github.com/mongodb/mongo/commit/34812222320df39885d28fa656bfc6716b8caf8f

Generated at Thu Feb 08 05:43:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.