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

Nested aggregations return incorrect values #929

Closed
andpol opened this issue Sep 10, 2014 · 3 comments
Closed

Nested aggregations return incorrect values #929

andpol opened this issue Sep 10, 2014 · 3 comments

Comments

@andpol
Copy link

andpol commented Sep 10, 2014

According to the docs, count(disctinct()) is supported, but other nested aggregate queries still return values, but they are not correct. A non 200 response should be returned instead, since they are not supported.

Some examples:
select mean(distinct(customerId)) from customer_events returns null
select min(distinct(customerId)) from customer_events returns 1.7976931348623157e+308
select max(distinct(customerId)) from customer_events returns -1.7976931348623157e+308

@andpol andpol changed the title Nested queries return incorrect values Nested aggregations return incorrect values Sep 10, 2014
@Dieterbe
Copy link
Contributor

you don't even need to nest. see #780

@jvshahid
Copy link
Contributor

This is a duplicate of #834. Closing.

@Dieterbe I'm not sure what you are trying to say ? these two issues aren't related.

@Dieterbe
Copy link
Contributor

@jvshahid well the OP mentioned that you get bad values using min(distinct()) and max(distinct()), and i was just commenting that in #780 you can see the same incorrect values being returned without having to nest. i.e. #780 shows that it happens with just max(field), you don't need max(distinct(field)) to reproduce the incorrect value. ditto for min.

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

No branches or pull requests

3 participants