这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: count aggregates return 0 instead of null if no rows match #85

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

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

hallettj
Copy link
Collaborator

@hallettj hallettj commented Jul 8, 2024

Fix for count aggregates in cases where the query does not match any rows. Previously the connector returned null which is an appropriate response for other aggregations (like sum), but not for counts. This change fixes the problem by substituting zero for null for count aggregates only.

This is a port of a fix for the same issue from the v2 agent.

Ticket: GDC-1345

@hallettj hallettj requested a review from dmoverton July 8, 2024 22:07
@hallettj hallettj self-assigned this Jul 8, 2024
@hallettj hallettj merged commit 497b106 into main Jul 9, 2024
1 check passed
@hallettj hallettj deleted the jesse/fix-aggregate-with-zero-rows branch July 9, 2024 22:18
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

Successfully merging this pull request may close these issues.

2 participants