This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
JOINs with aggregations in SELECT clause will return duplicate columns for each joined table #236
Labels
BI integration
Issues for integration with BI tools
bug
Something isn't working
low
SQL
TABLEAU-SUPPORT
Using Docker image
amazon/opendistro-for-elasticsearch:1.1.0
Dataset: Flights sample data (loaded through Kibana)
SQL Plugin version: 1.1.0.1
Example Query:
SELECT SUM(e.day_of_week_i), AVG(f.AvgTicketPrice) AS Average FROM kibana_sample_data_flights f INNER JOIN kibana_sample_data_ecommerce e ON (f.dayOfWeek = e.day_of_week_i) WHERE f.OriginWeather IN ('Sunny','Rain') OR f.DestWeather IN ('Sunny','Rain')
Results:
Expectation:
Query should only return columns as listed, instead of what seems to be the cartesian product of the joins and the selected columns.
Example results (query run with MySQL on small subset of Flights data):
The text was updated successfully, but these errors were encountered: