Skip to content

[Cosmos][VectorSearch] Non Streaming Order By Query#40085

Merged
aayush3011 merged 10 commits into
Azure:feature/vector_searchfrom
aayush3011:master
May 8, 2024
Merged

[Cosmos][VectorSearch] Non Streaming Order By Query#40085
aayush3011 merged 10 commits into
Azure:feature/vector_searchfrom
aayush3011:master

Conversation

@aayush3011

Copy link
Copy Markdown
Member

Description

  • This update introduces support for non-streaming OrderBy, essential for vector search capabilities. Previously, the SDK operated under the assumption that documents returned in response to ORDER BY queries were fully ordered across all continuations. However, with the newly implemented non-streaming OrderBy feature in the backend, this assumption is no longer valid. The backend communicates this change through a new field in the Query Plan, _hasNonStreamingOrderBy, which is set to true when applicable.

  • In scenarios where _hasNonStreamingOrderBy is true, a new pipeline stage for non-streaming order by is established. This stage functions as a blocking pipeline stage, similar to the GROUP BY stage, and is designed to accumulate all backend responses before yielding any results.

  • A new query feature by the name of NonStreamingOrderBy has also been added.

.Net PR for the same: Azure/azure-cosmos-dotnet-v3#4362

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

azure-sdk and others added 10 commits May 2, 2024 12:41
Increment package versions for core releases
* Added Alpha3 Java Media Streaming Events

* updating readme to add the media streaming events to remove model

---------

Co-authored-by: Vinothini Dharmaraj <v-vdharmaraj@microsoft.com>
…re#40012)

Co-authored-by: James Suplizio <jasupliz@microsoft.com>
* SDK Review updates

* Update auto-generated models

* Add customization

* Fix customization

* Update package

* Update tests

* Linting
)

* fix fault injection rule failed to apply per partition in gateway mode

---------

Co-authored-by: annie-mac <xinlian@microsoft.com>
* release azure-cosmos-test 1.0.0.beta.7
---------

Co-authored-by: annie-mac <xinlian@microsoft.com>
@azure-sdk

azure-sdk commented May 8, 2024

Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants