-
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: COUNT(DISTINCT [field_name]) generates "Two sibling aggregations cannot have the same name" error #30287
Labels
Comments
Pinging @elastic/es-search-aggs |
I've run into this with queries in Canvas as well SELECT FLOOR(SUM(FlightTimeMin)/1440) as total_days, (365-(FLOOR(SUM(FlightTimeMin)/1440))) as "days_leftover"
FROM kibana_sample_data_flights |
costin
added a commit
to costin/elasticsearch
that referenced
this issue
Aug 29, 2018
Prevent generation of duplicate aggs caused by repetitive functions, leading to invalid query. Fix elastic#30287
costin
added a commit
that referenced
this issue
Aug 30, 2018
Prevent generation of duplicate aggs caused by repetitive functions, leading to invalid query. Fix #30287
costin
added a commit
that referenced
this issue
Aug 30, 2018
costin
added a commit
that referenced
this issue
Aug 30, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test index mapping with no documents:
The following query
select source,count(distinct country) from ip_index2 group by source having count(distinct country)>5
generates an error:The text was updated successfully, but these errors were encountered: