Azure / azure-cosmos-dotnet-v3

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

Query: Fixes non streaming OrderByCrossPartitionQueryPipelineStage to remove state and handle splits #4493

Closed neildsh closed 4 months ago

neildsh commented 4 months ago

Description

Simplifies OrderByCrossPartitionQueryPipelineStage to remove state and be a static class. Since we can now statically detect no streaming order by queries, the OrderByCrossPartitionQueryPipelineStage can be simplified considerably.

We also add more handling for splits/merges for the non streaming order by pipeline stage.

Improve test coverage for split/merge handling as well as stronger validation for query charges.

Related changes:

4362 , #4446, #4459, #4492

Type of change