Skip to content
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

[Cosmos] add additional tests and samples for paginated queries #39364

Open
6 tasks
simorenoh opened this issue Jan 23, 2025 · 0 comments
Open
6 tasks

[Cosmos] add additional tests and samples for paginated queries #39364

simorenoh opened this issue Jan 23, 2025 · 0 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Cosmos

Comments

@simorenoh
Copy link
Member

simorenoh commented Jan 23, 2025

Our current pagination queries don't do a very good job of showing how they can fully be used, nor how their results can be limited on a per-page basis through the use of max_item_count parameter. The closest thing we have are these tests for vector search: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-cosmos/test/test_query_vector_similarity.py#L200 and for hybrid search: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-cosmos/test/test_query_hybrid_search.py#L175.

We should as a minimum add similar tests in the relevant query test files showing the per-page and total results, as well as including some showing how it acts for cross-partition scenarios.

Files to enhance/ add to:

  • test_query.py
  • test_query_async.py
  • test_query_cross_partition.py
  • test_query_cross_partition_async.py
  • document_management.py
  • document_management_async.py
@simorenoh simorenoh added Client This issue points to a problem in the data-plane of the library. Cosmos labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Cosmos
Projects
Status: No status
Development

No branches or pull requests

2 participants