[DRIVERS-2183] Support 'let' option in BulkWriteOptions Created: 31/Jan/22  Updated: 25/Oct/22

Status: Implementing
Project: Drivers
Component/s: CRUD
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: Julius Park (Inactive) Assignee: Julius Park (Inactive)
Resolution: Unresolved Votes: 0
Labels: size-small, spec-change
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-63704 Allow for each individual delete to a... Backlog
depends on SERVER-63733 Allow individual updates to accept pa... Backlog
Issue split
split to PHPLIB-748 Support 'let' option for multiple CRU... Closed
split to JAVA-4498 Support 'let' option in BulkWriteOptions Closed
split to PYTHON-3068 Add 'let' option to bulk_write models... Closed
split to RUST-1189 Support 'let' option in BulkWriteOptions Backlog
split to CSHARP-4060 Support 'let' option in BulkWriteOptions Closed
split to CXX-2456 Support 'let' option in BulkWriteOptions Closed
split to GODRIVER-2314 Support 'let' option in BulkWriteOptions Closed
split to MOTOR-899 Support 'let' option in BulkWriteOptions Closed
split to NODE-4014 Support 'let' option in BulkWriteOptions Closed
split to RUBY-2911 Support 'let' option in BulkWriteOptions Closed
split to CDRIVER-4198 Support 'let' option for multiple CRU... Closed
Related
related to DRIVERS-2226 Fix server version incompatibility fo... Implementing
is related to DRIVERS-2027 Add 'let' option to ReplaceOptions Closed
Driver Changes: Needed
Downstream Changes Summary:

Drivers must implement a new 'let' option in BulkWriteOptions. See ticket description for more info.

Sync unified CRUD spec tests to 343a56fe0e8ac2a5e83a75170f9f3f149e5c7da9.

Driver Compliance:
Key Status/Resolution FixVersion
CXX-2456 Fixed 3.7.0
CSHARP-4060 Fixed 2.16.0
GODRIVER-2314 Done 1.9.0
JAVA-4498 Duplicate
NODE-4014 Fixed 4.5.0
MOTOR-899 Duplicate
RUBY-2911 Fixed 2.18.0
RUST-1189 Backlog
SWIFT-1498 Won't Do
PYTHON-3068 Fixed 4.1
PHPLIB-748 Fixed 1.13.0-beta1, 1.13.0
CDRIVER-4198 Fixed 1.22.0, 1.22.0-beta0

 Description   

Drivers should add support for let to BulkWriteOptions. If specified, the option should be used to specify the top-level let option on all update and delete commands executed as part of that bulk write (the option does not apply to insert).

Note that there a presently no plans to add let options to bulk write models (e.g. UpdateOneModel). Although update does support a c option on individual statements, delete does not (pending SERVER-63704). That work can be deferred for now.



 Comments   
Comment by Githook User [ 23/Feb/22 ]

Author:

{'name': 'Julius Park', 'email': 'Juliusgeo@gmail.com', 'username': 'juliusgeo'}

Message: DRIVERS-2183 Support 'let' option in BulkWriteOptions (#1132)
Branch: master
https://github.com/mongodb/specifications/commit/343a56fe0e8ac2a5e83a75170f9f3f149e5c7da9

Comment by Shane Harvey [ 17/Feb/22 ]

PR: https://github.com/mongodb/specifications/pull/1132

Comment by Jeremy Mikola [ 16/Feb/22 ]

kateryna.kamenieva responded on HELP-31129, so I think we can move forward with this.

For the time being, let can be added to BulkWriteOptions and will be used to specify the top-level let option for all update and delete commands executed as part of that bulk write (insert is excluded since the option does not apply there). We'll ignore statement-level c options for now, but that may be revisited down the line if we see user demand for it.

I'll revise the issue title and description accordingly.

Comment by Jeremy Mikola [ 02/Feb/22 ]

julius.park: See my comment in HELP-31129. I think this issue needs to be repurposed to add let to both BulkWriteOptions (where it will set let on each command issued as part of the bulk write) and individual write models (where it will set c options for individual statements).

Generated at Thu Feb 08 08:24:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.