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] Cross-Partition queries, with optional external Query Engine integration (Azure#2577)
* begin work on query engine
* update non-query-engine tests
* implement query-via-query-engine
* add 'deque' to rust cspell dictionary
* remove raw_value and tracing features from dependencies
* update assets.json for cosmos
* address clippy lint
* rename Context::into_borrowed to Context::to_borrowed
* a few docs updates
* pr feedback
* re-enable tracing feature on azure_data_cosmos tests
/// * `partition_key_strategy` - The partition key to scope the query on.
639
+
/// * `partition_key` - The partition key to scope the query on, or specify an empty key (`()`) to perform a cross-partition query.
629
640
/// * `options` - Optional parameters for the request.
630
641
///
642
+
/// # Cross Partition Queries
643
+
///
644
+
/// Cross-partition queries are significantly limited in the current version of the Cosmos DB SDK.
645
+
/// They are run on the gateway and limited to simple projections (`SELECT`) and filtering (`WHERE`).
646
+
/// For more details, see [the Cosmos DB documentation page on cross-partition queries](https://learn.microsoft.com/en-us/rest/api/cosmos-db/querying-cosmosdb-resources-using-the-rest-api#queries-that-cannot-be-served-by-gateway).
647
+
///
631
648
/// # Examples
632
649
///
633
-
/// The `query` and `partition_key_strategy` parameters accept anything that can be transformed [`Into`] their relevant types.
650
+
/// The `query` and `partition_key` parameters accept anything that can be transformed [`Into`] their relevant types.
634
651
/// This allows simple queries without parameters to be expressed easily:
635
652
///
636
653
/// ```rust,no_run
@@ -666,23 +683,38 @@ impl ContainerClient {
666
683
/// ```
667
684
///
668
685
/// See [`PartitionKey`](crate::PartitionKey) for more information on how to specify a partition key, and [`Query`] for more information on how to specify a query.
Copy file name to clipboardExpand all lines: sdk/cosmos/azure_data_cosmos/src/feed.rs
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ use crate::constants;
11
11
/// Cosmos DB queries can be executed using non-HTTP transports, depending on the circumstances.
12
12
/// They may also produce results that don't directly correlate to specific HTTP responses (as in the case of cross-partition queries).
13
13
/// Because of this, Cosmos DB query responses use `FeedPage` to represent the results, rather than a more generic type like [`Response`](azure_core::http::Response).
0 commit comments