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

Coalesce with an aggregate doesn't work as expected #527

Closed
ldhasson opened this issue Apr 27, 2020 · 0 comments
Closed

Coalesce with an aggregate doesn't work as expected #527

ldhasson opened this issue Apr 27, 2020 · 0 comments
Assignees
Labels

Comments

@ldhasson
Copy link
Collaborator

When declaring a coalesce with an aggregate, the code generated is coalesce(sum(x), 0) instead of sum(coalesce(x, 0). This is particularly important with array aggs which may be accumulating nulls in a specific order from the DB which may not be proper.

ldhasson added a commit that referenced this issue Apr 27, 2020
@ldhasson ldhasson self-assigned this Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

1 participant