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

EnableCrossPartitionQuery query property missing in 3.x SDK #731

Closed
dan-silver opened this issue Aug 22, 2019 · 2 comments
Closed

EnableCrossPartitionQuery query property missing in 3.x SDK #731

dan-silver opened this issue Aug 22, 2019 · 2 comments

Comments

@dan-silver
Copy link

Describe the bug
I'm migrating our project to use Microsoft.Azure.Cosmos 3.1.1 instead of Microsoft.Azure.DocumentDB version 1.10. Everything is working fine except I noticed that I can't specify the EnableCrossPartitionQuery parameter. We used to set this in FeedOptions that was passed to CreateDocumentQuery. The other properties (like MaxItemCount) are in QueryRequestOptions that we now pass to GetItemQueryIterator but I don't see EnableCrossPartitionQuery.

Is this automatically set based on if we pass in a partition key? Thanks!

To Reproduce

Expected behavior

Actual behavior

Environment summary
SDK Version: 3.1.1
OS Version (e.g. Windows, Linux, MacOSX) Windows

@j82w
Copy link
Contributor

j82w commented Aug 22, 2019

Hi @dan-silver,

The v3 SDK sets the EnableCrossPartitionQuery automatically based on the query and QueryRequestOptions.PartitionKey value. There is no need to set it in v3.

@dan-silver
Copy link
Author

Thank you for the quick answer @j82w . Closing issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants