-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
SQL: MIN/MAX/AVG/SUM/PERCENTILE/PERCENTILE RANK handling on NULL values #34896
Labels
Comments
Pinging @elastic/es-search-aggs |
The issue here is that as the bucket doesn't contain any entries, the aggs return default values (since Aggs use primitives which cannot be nullified). |
costin
added a commit
to costin/elasticsearch
that referenced
this issue
Oct 26, 2018
When dealing with a null group, make sure the associated aggs return null Fix elastic#34896
costin
added a commit
that referenced
this issue
Oct 26, 2018
When dealing with a null group, the associated metric aggs need to return null as well Fix #34896
costin
added a commit
that referenced
this issue
Oct 26, 2018
costin
added a commit
that referenced
this issue
Oct 28, 2018
kcm
pushed a commit
that referenced
this issue
Oct 30, 2018
When dealing with a null group, the associated metric aggs need to return null as well Fix #34896
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The first line is for
null
values in thelanguages
field. Shouldn't MIN and MAX of null values return anull
? Same question for SUM. Not so sure about PERCENTILE and PERCENTILE_RANK though... ES returnsnull
for these two. If MIN and MAX would returnnull
probably the same should be done for AVG.Opening this one up for discussion.
The text was updated successfully, but these errors were encountered: