Skip to content

Conversation

@tvaron3
Copy link
Member

@tvaron3 tvaron3 commented Oct 24, 2025

Porting Azure/azure-sdk-for-rust#3166 as it is a pre-req for readmany.

@tvaron3
Copy link
Member Author

tvaron3 commented Oct 24, 2025

/azp run go - azcosmos

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@github-actions
Copy link

github-actions bot commented Oct 24, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

sdk/data/azcosmos

@tvaron3
Copy link
Member Author

tvaron3 commented Oct 27, 2025

/azp run go - azcosmos

@tvaron3 tvaron3 marked this pull request as ready for review October 27, 2025 02:17
@tvaron3 tvaron3 requested a review from a team as a code owner October 27, 2025 02:17
Copilot AI review requested due to automatic review settings October 27, 2025 02:17
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a 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 QueryRequest and QueryResult to 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

@tvaron3
Copy link
Member Author

tvaron3 commented Oct 27, 2025

/azp run go - azcosmos

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tvaron3
Copy link
Member Author

tvaron3 commented Oct 27, 2025

/azp run go - azcosmos

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@analogrelay analogrelay left a 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!

@tvaron3
Copy link
Member Author

tvaron3 commented Oct 29, 2025

/azp run go - azcosmos

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@analogrelay analogrelay left a 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!

@tvaron3
Copy link
Member Author

tvaron3 commented Oct 31, 2025

/azp run go - azcosmos

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants