-
Notifications
You must be signed in to change notification settings - Fork 944
cosmos: Allow the Query Pipeline to return an alternative query to execute in each request #25503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
/azp run go - azcosmos |
|
Azure Pipelines successfully started running 1 pipeline(s). |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
|
/azp run go - azcosmos |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR ports functionality from the Rust SDK to enable the Query Pipeline to return an alternative query for each request, which is a prerequisite for implementing readmany operations.
Key changes include:
- Added new fields to
QueryRequestandQueryResultto support query overrides and request ordering - Extended the mock query engine to support configurable query request overrides
- Added comprehensive test coverage for query override scenarios
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| sdk/data/azcosmos/queryengine/cosmos_query_engine.go | Added fields for query override, request indexing, and drain mode to support alternative query execution |
| sdk/data/azcosmos/internal/mock_query_engine.go | Implemented query request configuration and request ordering validation in the mock engine |
| sdk/data/azcosmos/cosmos_container_query_engine_test.go | Added test cases for query override with/without parameters and refactored test item generation |
| sdk/data/azcosmos/cosmos_container_query_engine.go | Implemented query override logic and drain mode support in the query execution loop |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
/azp run go - azcosmos |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run go - azcosmos |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few small blocking issues, and a couple nits. Looks good!
|
/azp run go - azcosmos |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! One small update based on work I'm doing in the engine for Hybrid search. I can spin a quick Approve around once you've got that in!
|
/azp run go - azcosmos |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Porting Azure/azure-sdk-for-rust#3166 as it is a pre-req for readmany.