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

CosmosDB: Allow running queries without Partition Key #23563

Open
KStillings-Slalom opened this issue Oct 10, 2024 · 1 comment
Open

CosmosDB: Allow running queries without Partition Key #23563

KStillings-Slalom opened this issue Oct 10, 2024 · 1 comment
Labels
Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@KStillings-Slalom
Copy link

KStillings-Slalom commented Oct 10, 2024

Feature Request
In PR #17657, support was added for running an CosmosDB SQL query against a single partition in CosmosDB. However, in the Data Explorer UI and in other SDKs, a query can be run without specifying a partition key, and run across the entire container.

Could this functionality be added for feature parity with the other SDKs 🙏

Thanks!

I've seen issues raised for this function, but there's not been any traction. Is this something that will be addressed?

Related issues:
#20393
#18578

Seems both issues just sat for a few months and were automatically closed without being implemented. Is this in the works?

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 10, 2024
@KStillings-Slalom KStillings-Slalom changed the title Cross Partition Query CosmosDB: Allow running queries without Partition Key Oct 10, 2024
@jhendrixMSFT jhendrixMSFT added Cosmos and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Oct 10, 2024
@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Oct 10, 2024
@mbarnes
Copy link

mbarnes commented Oct 16, 2024

The conversation is locked in #18578 so adding a thought here.

Rather than blocking on an all-or-nothing solution to cross-partition queries, it seems like you could cover a lot of simple use cases by adding a method like

func (*ContainerClient) ReadAllItems(ctx context.Context, o *ItemOptions) *runtime.Pager[QueryItemsResponse]

which returns unordered results (at least initially) and letting clients deal with filtering and ordering.

I understand from the other issue there would still be significant complexity behind this -- fetching the partition map and orchestrating SELECT * queries across partitions -- but it would still be a significant enhancement to the SDK while working toward a general solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants