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