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 DB: Support VALUE COUNT queries #710

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

ealsur
Copy link
Member

@ealsur ealsur commented Feb 23, 2021

Input binding queries when executed on other languages (not C#) use JArray as the binding type.

JArray builder assumes the query will return JSON documents, which is the most common case, but some queries, like queries with VALUE operand, do not return JSON.

Using JToken instead of JObject lets the query work for normal JSON documents and for JValues.

Closes #569

@ealsur ealsur requested a review from brettsam February 23, 2021 00:54
@ealsur ealsur self-assigned this Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Classcast error while using CosmosDB query with COUNT and VALUE
2 participants