Skip to content

Commit 1d004cf

Browse files
authored
[Cosmos] consider batch as write op (Azure#38365)
* consider batch as write op * Update CHANGELOG.md
1 parent 0c9f9e1 commit 1d004cf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sdk/cosmos/azure-cosmos/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ For more information on this, see our README section [here](https://github.com/A
2424
* Added retry handling logic for DatabaseAccountNotFound exceptions. See [PR 36514](https://github.com/Azure/azure-sdk-for-python/pull/36514).
2525
* Fixed SDK regex validation that would not allow for item ids to be longer than 255 characters. See [PR 36569](https://github.com/Azure/azure-sdk-for-python/pull/36569).
2626
* Fixed issue where 'NoneType' object has no attribute error was raised when a session retry happened during a query. See [PR 37578](https://github.com/Azure/azure-sdk-for-python/pull/37578).
27+
* Batch requests will now be properly considered as Write operation. See [PR 38365](https://github.com/Azure/azure-sdk-for-python/pull/38365).
2728

2829
#### Other Changes
2930
* Getting offer thoughput when it has not been defined in a container will now give a 404/10004 instead of just a 404. See [PR 36043](https://github.com/Azure/azure-sdk-for-python/pull/36043)

sdk/cosmos/azure-cosmos/azure/cosmos/documents.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ def IsWriteOperation(operationType: str) -> bool:
373373
_OperationType.Replace,
374374
_OperationType.Upsert,
375375
_OperationType.Update,
376+
_OperationType.Batch
376377
)
377378

378379
@staticmethod

0 commit comments

Comments
 (0)