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

Return type of avg() should be nullable #1596

Closed
nhaarman opened this issue Feb 13, 2020 · 0 comments · Fixed by #1610
Closed

Return type of avg() should be nullable #1596

nhaarman opened this issue Feb 13, 2020 · 0 comments · Fixed by #1610

Comments

@nhaarman
Copy link
Contributor

@nhaarman nhaarman commented Feb 13, 2020

Much like 1517: The return type of sum() should always be nullable, avg() returns NULL when there are no rows found: https://www.sqlite.org/lang_aggfunc.html#avg.

Currently executing avg() over an empty row set results in a NullPointerException.

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

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.