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] Returns undefined for cross-partition sums when one is undefined #12926

Closed
wants to merge 4 commits into from

Conversation

zfoster
Copy link
Contributor

@zfoster zfoster commented Dec 16, 2020

We had an issue noticed in the portal where we were returning seemingly correct values for queries like

SELECT VALUE SUM(c.age) from c

for cross-partition queries, even when age had null or undefined values. For example, with the following items, we were returning the value 44

{ id: id1, age: 22 },
{ id: id2, age: 22 },
{ id: id3, age: null },
{ id: id4, age: 22 },
{ id: id5 },
{ id: id6 }

which is inconsistent with other SDKs

@ghost ghost added the Cosmos label Dec 16, 2020
@zfoster
Copy link
Contributor Author

zfoster commented Dec 21, 2020

new PR coming

@zfoster zfoster closed this Dec 21, 2020
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this pull request Feb 10, 2021
ContainerInstance: update readme.java.md (Azure#12926)
@xirzec xirzec deleted the zf/sum-aggregator branch April 20, 2022 22:05
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.

1 participant