You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cosmos: Cut over query methods to the driver (#4174)
Migrates query_items, query_databases, and query_containers from the
gateway HTTP pipeline to the Cosmos driver pipeline, aligning query
operations with the item CRUD operations that were already cut over.
- QueryExecutor now takes an Arc<CosmosDriver> and an operation factory
closure instead of Arc<GatewayPipeline> and a ResourceLink,
executing queries via driver.execute_operation().
- Query-specific headers (content type, continuation, custom headers)
are passed through DriverOperationOptions instead of being set
directly on the HTTP request.
- QueryOptions::apply_headers is now #[cfg(test)]-only since production
code no longer uses it.
- query_items_cross_partition simplified to delegate to query_items with
PartitionKey::EMPTY.
- Adds emulator tests for single-partition and cross-partition query
pagination.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: sdk/cosmos/azure_data_cosmos/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@
22
22
### Other Changes
23
23
24
24
- Database and container CRUD operations (`create_database`, `read`, `create_container`, `delete`) now route through the Cosmos driver pipeline. Throughput provisioning uses typed request headers via the driver. ([#4147](https://github.com/Azure/azure-sdk-for-rust/pull/4147))
25
+
- Query operations (`query_items`, `query_databases`, `query_containers`) now route through the Cosmos driver pipeline, gaining driver-level transport, routing, and retry capabilities. ([#4174](https://github.com/Azure/azure-sdk-for-rust/pull/4174))
0 commit comments