Azure / azure-cosmos-dotnet-v3

.NET SDK for Azure Cosmos DB for the core SQL API
MIT License
723 stars 477 forks source link

Query: Adds an environment config to suppress sending NonStreamingOrderBy in the list of query features sent to the gateway #4492

Closed neildsh closed 1 month ago

neildsh commented 1 month ago

Description

In order to retrieve a query plan for non streaming order by queries, the sdk must send NonStreamingOrderBy in the list of supported query features to the gateway. However, older gateways will not recognize this new value, causing the query plan request to fail with a 400. To mitigate this edge case, we add a check for an environment variable AZURE_COSMOS_NON_STREAMING_ORDER_BY_FLAG_DISABLED, which when set to True will suppress sending NonStreamingOrderBy in the list of supported query features.

A note about the naming It is named as DISABLED by design for two reasons:

Type of change

neildsh commented 1 month ago

/azp run

azure-pipelines[bot] commented 1 month ago
Azure Pipelines successfully started running 1 pipeline(s).