-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Cosmos][VectorSearch] Non Streaming Order By Query #39897
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
Merged
kushagraThapar
merged 46 commits into
Azure:main
from
aayush3011:users/akataria/nonStreamingOrderBy
May 20, 2024
Merged
Changes from 21 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
540a16d
Initial changes
aayush3011 6f49c75
Initial changes
aayush3011 97509eb
Merge branch 'main' into users/akataria/nonStreamingOrderBy
aayush3011 528a0eb
[Cosmos][VectorIndex]Adding changes for vectorIndex and vectorEmbeddi…
aayush3011 86b36d3
Merge branch 'main' into users/akataria/nonStreamingOrderBy
aayush3011 a979c11
Initial changes
aayush3011 e2756a5
Initial changes
aayush3011 8be2277
Initial changes
aayush3011 e491b9d
Resolving comments
aayush3011 151bb50
Fixing build issues
aayush3011 73afd5b
Merge branch 'Azure:main' into users/akataria/nonStreamingOrderBy
aayush3011 148cba5
[Cosmos][VectorSearch] Non Streaming Order By Query (#40085)
aayush3011 3b0d751
Merge branch 'Azure:main' into users/akataria/nonStreamingOrderBy
aayush3011 87572f7
Merge branch 'feature/vector_search' into users/akataria/nonStreaming…
aayush3011 df7e838
[Cosmos][VectorSearch] Non Streaming Order By Query (#40096)
aayush3011 179f904
Initial changes
aayush3011 5602e33
Merge branch 'users/akataria/nonStreamingOrderBy' of github.com:aayus…
aayush3011 36ab9b7
Merge branch 'feature/vector_search' into users/akataria/nonStreaming…
aayush3011 70639b5
Initial changes
aayush3011 c45c3a5
Fixes
aayush3011 6c255ee
Merge branch 'Azure:main' into users/akataria/nonStreamingOrderBy
aayush3011 9d427e6
Users/akataria/vectorindexing (#40117)
aayush3011 1cadb1b
Merge branch 'feature/VectorSearch' into users/akataria/nonStreamingO…
aayush3011 0f1be0c
Users/akataria/non streaming order by (#40118)
aayush3011 d4dcad2
Fixing some merge issues
aayush3011 cdaa5bc
Fixing some merge issues
aayush3011 dfa8b64
Fixing some merge issues
aayush3011 7549cbe
Resolving comments
aayush3011 c6e2376
Merge branch 'feature/VectorSearch' into users/akataria/nonStreamingO…
aayush3011 30d8370
Users/akataria/vectorindexing (#40158)
aayush3011 8279358
Users/akataria/non streaming order by (#40159)
aayush3011 dd9d13b
Fixing build issue
aayush3011 d966af4
Merge branch 'feature/VectorSearch' into users/akataria/nonStreamingO…
aayush3011 9eb9208
Fixing build issue
aayush3011 1aaecef
Merge branch 'users/akataria/nonStreamingOrderBy' of github.com:aayus…
aayush3011 8bf4f8d
Merge branch 'main' into users/akataria/nonStreamingOrderBy
aayush3011 943cc4c
Adding tests
aayush3011 1db9b31
Adding capability for CI pipeline
aayush3011 2770b0f
Updating the PQ logic
aayush3011 7002362
Resolving comments, adding new test cases
aayush3011 508e94a
Adding argument to run emulator tests
aayush3011 822bd67
fixing emulator test pipeline
aayush3011 46fe7cb
fixing emulator test pipeline
aayush3011 5657b75
Adding logging for variable AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY
aayush3011 015a77c
Adding logging for variable AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY
aayush3011 f87be45
fixing emulator test pipeline
aayush3011 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...in/java/com/azure/cosmos/implementation/query/NonStreamingOrderByBadRequestException.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
aayush3011 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| // Licensed under the MIT License. | ||
| package com.azure.cosmos.implementation.query; | ||
|
|
||
| import com.azure.cosmos.CosmosException; | ||
|
|
||
| public class NonStreamingOrderByBadRequestException extends CosmosException { | ||
|
|
||
| private static final long serialVersionUID = 1L; | ||
|
|
||
| /** | ||
| * Creates a new instance of the NonStreamingOrderByBadRequestException class. | ||
| * | ||
| * @param statusCode the http status code of the response. | ||
| * @param errorMessage the error message. | ||
| */ | ||
| public NonStreamingOrderByBadRequestException(int statusCode, String errorMessage) { | ||
| super(statusCode, errorMessage); | ||
| } | ||
| } | ||
43 changes: 43 additions & 0 deletions
43
.../main/java/com/azure/cosmos/implementation/query/NonStreamingOrderByDocumentProducer.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package com.azure.cosmos.implementation.query; | ||
|
|
||
| import com.azure.cosmos.implementation.Document; | ||
| import com.azure.cosmos.implementation.DocumentClientRetryPolicy; | ||
| import com.azure.cosmos.implementation.RxDocumentServiceRequest; | ||
| import com.azure.cosmos.implementation.feedranges.FeedRangeEpkImpl; | ||
| import com.azure.cosmos.implementation.query.orderbyquery.OrderbyRowComparer; | ||
| import com.azure.cosmos.models.CosmosQueryRequestOptions; | ||
| import com.azure.cosmos.models.FeedResponse; | ||
| import reactor.core.publisher.Mono; | ||
|
|
||
| import java.util.UUID; | ||
| import java.util.function.Function; | ||
| import java.util.function.Supplier; | ||
|
|
||
| public class NonStreamingOrderByDocumentProducer extends DocumentProducer<Document> { | ||
| private final OrderbyRowComparer<Document> consumeComparer; | ||
|
|
||
| NonStreamingOrderByDocumentProducer( | ||
| OrderbyRowComparer<Document> consumeComparer, | ||
| IDocumentQueryClient client, | ||
| String collectionResourceId, | ||
| CosmosQueryRequestOptions cosmosQueryRequestOptions, | ||
| TriFunction<FeedRangeEpkImpl, String, Integer, RxDocumentServiceRequest> createRequestFunc, | ||
| Function<RxDocumentServiceRequest, Mono<FeedResponse<Document>>> executeRequestFunc, | ||
| FeedRangeEpkImpl feedRange, | ||
| String collectionLink, | ||
| Supplier<DocumentClientRetryPolicy> createRetryPolicyFunc, | ||
| Class<Document> resourceType, | ||
| UUID correlatedActivityId, | ||
| int initialPageSize, | ||
| String initialContinuationToken, | ||
| int top, | ||
| Supplier<String> operationContextTextProvider) { | ||
| super(client, collectionResourceId, cosmosQueryRequestOptions, createRequestFunc, executeRequestFunc, | ||
| collectionLink, createRetryPolicyFunc, resourceType, correlatedActivityId, initialPageSize, | ||
| initialContinuationToken, top, feedRange, operationContextTextProvider); | ||
| this.consumeComparer = consumeComparer; | ||
aayush3011 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.