| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| azure-cosmos_4.16.2 source code.tar.gz | 2026-07-15 | 173.7 MB | |
| azure-cosmos_4.16.2 source code.zip | 2026-07-15 | 222.6 MB | |
| README.md | 2026-07-15 | 1.0 kB | |
| Totals: 3 Items | 396.2 MB | 0 | |
4.16.2 (2026-07-15)
Features Added
- Added
GlobalSecondaryIndexDefinitionclass andglobal_secondary_indexkeyword tocreate_container,create_container_if_not_exists, andreplace_containermethods for creating Global Secondary Index (GSI) containers. See PR 47468.
Bugs Fixed
- Fixed
KeyError: 'version'inSessionContainer.get_session_token(sync and async) when the container'spartitionKeydefinition returned by the service does not include the optionalversionfield. The error was silently swallowed by a broadexcept, causing the client to send nox-ms-session-tokenheader on subsequent reads. Against the Dedicated Gateway, this turned every Session-consistency read into an Integrated Cache miss.partitionKey.versionis now treated as optional and defaults to1, matching howPartitionKeyhandles a missing version. See PR 47143